File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ services:
1212 ports :
1313 - 3128:3128
1414env :
15- https_proxy : http://squid-proxy:3128
1615 CODEQL_ACTION_TOLERATE_MISSING_GIT_VERSION : true
1716steps :
1817 - name : Block direct internet access to force proxy usage
@@ -33,8 +32,18 @@ steps:
3332 iptables -A OUTPUT -p tcp --dport 80 -j REJECT --reject-with tcp-reset
3433 iptables -A OUTPUT -p tcp --dport 443 -j REJECT --reject-with tcp-reset
3534 echo "Direct HTTP/HTTPS access is now blocked - all traffic must go through the proxy"
35+
36+ - name : Set proxy environment variables
37+ shell : bash
38+ run : |
39+ echo "http_proxy=http://squid-proxy:3128" >> $GITHUB_ENV
40+ echo "HTTP_PROXY=http://squid-proxy:3128" >> $GITHUB_ENV
41+ echo "https_proxy=http://squid-proxy:3128" >> $GITHUB_ENV
42+ echo "HTTPS_PROXY=http://squid-proxy:3128" >> $GITHUB_ENV
43+
3644 - uses : ./../action/init
3745 with :
3846 languages : javascript
3947 tools : ${{ steps.prepare-test.outputs.tools-url }}
48+
4049 - uses : ./../action/analyze
You can’t perform that action at this time.
0 commit comments