mirror of
https://github.com/actions/cache.git
synced 2026-03-07 10:13:07 +08:00
Fix the proxy config
This commit is contained in:
parent
d19411273c
commit
d59cb79a26
7
.github/workflows/workflow.yml
vendored
7
.github/workflows/workflow.yml
vendored
@ -128,8 +128,8 @@ jobs:
|
|||||||
echo "Fetching GitHub meta API..."
|
echo "Fetching GitHub meta API..."
|
||||||
curl -sS https://api.github.com/meta > /tmp/github-meta.json
|
curl -sS https://api.github.com/meta > /tmp/github-meta.json
|
||||||
|
|
||||||
# Get squid-proxy IP address
|
# Proxy is on localhost
|
||||||
PROXY_IP=$(getent hosts squid-proxy | awk '{ print $1 }')
|
PROXY_IP="127.0.0.1"
|
||||||
echo "Proxy IP: $PROXY_IP"
|
echo "Proxy IP: $PROXY_IP"
|
||||||
|
|
||||||
# Allow established connections
|
# Allow established connections
|
||||||
@ -194,6 +194,9 @@ jobs:
|
|||||||
echo ""
|
echo ""
|
||||||
echo "ipset github-ips contains $(ipset list github-ips | grep -c '^[0-9]') entries"
|
echo "ipset github-ips contains $(ipset list github-ips | grep -c '^[0-9]') entries"
|
||||||
- name: Verify proxy enforcement
|
- name: Verify proxy enforcement
|
||||||
|
env:
|
||||||
|
http_proxy: http://127.0.0.1:3128
|
||||||
|
https_proxy: http://127.0.0.1:3128
|
||||||
run: |
|
run: |
|
||||||
echo "=== Testing proxy enforcement ==="
|
echo "=== Testing proxy enforcement ==="
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user