Skip to content

Commit a2bfb64

Browse files
committed
Set other proxy env vars
1 parent 84ae30d commit a2bfb64

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/__global-proxy.yml

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/global-proxy.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ services:
1212
ports:
1313
- 3128:3128
1414
env:
15-
https_proxy: http://squid-proxy:3128
1615
CODEQL_ACTION_TOLERATE_MISSING_GIT_VERSION: true
1716
steps:
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

0 commit comments

Comments
 (0)