Skip to content

Commit dd8cb55

Browse files
authored
Stabilize DIFC proxy integration check by replacing flaky /rate_limit assertion (#31595)
1 parent 95f1809 commit dd8cb55

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,9 +1319,9 @@ jobs:
13191319
NODE_EXTRA_CA_CERTS: /tmp/gh-aw/proxy-logs/proxy-tls/ca.crt
13201320
run: |
13211321
echo "Testing gh CLI through DIFC proxy (GH_HOST=${GH_HOST})..."
1322-
# Use /rate_limit which is exempt from rate limits and proves proxy routing works
1323-
rate_limit=$(gh api /rate_limit --jq '.rate.limit')
1324-
echo "✅ gh CLI works through DIFC proxy (rate limit: ${rate_limit})"
1322+
# Use a repository endpoint to verify proxied gh API calls.
1323+
repo_name=$(gh api "repos/${GITHUB_REPOSITORY}" --jq '.full_name')
1324+
echo "✅ gh CLI works through DIFC proxy (repo: ${repo_name})"
13251325
13261326
- name: Test actions/github-script with proxy env
13271327
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9

0 commit comments

Comments
 (0)