Skip to content

Commit b5b0223

Browse files
committed
chore: removes WAF bypass token (BFM disabled)
1 parent 2faf4a5 commit b5b0223

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
run: node scripts/verify-csp-hash.mjs
2323
- name: WAF smoke tests
2424
run: pnpm test:waf
25-
env:
26-
WAF_BYPASS_TOKEN: ${{ secrets.WAF_BYPASS_TOKEN }}
2725
- run: pnpm run build
2826
env:
2927
VITE_GITHUB_CLIENT_ID: ${{ vars.VITE_GITHUB_CLIENT_ID }}

scripts/waf-smoke-test.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ BASE="https://gh.gordoncode.dev"
1414
PASS=0
1515
FAIL=0
1616

17-
# When WAF_BYPASS_TOKEN is set (CI), send a header that a Cloudflare WAF rule
18-
# uses to skip Bot Fight Mode for this request. Without it (local dev), requests
19-
# pass through normally since residential IPs aren't challenged.
20-
BYPASS=()
21-
if [[ -n "${WAF_BYPASS_TOKEN:-}" ]]; then
22-
BYPASS=(-H "X-CI-Bypass: ${WAF_BYPASS_TOKEN}")
23-
fi
24-
2517
assert_status() {
2618
local expected="$1" actual="$2" label="$3"
2719
if [[ "$actual" == "$expected" ]]; then
@@ -34,7 +26,7 @@ assert_status() {
3426
}
3527

3628
fetch() {
37-
curl -s -o /dev/null -w "%{http_code}" "${BYPASS[@]}" "$@"
29+
curl -s -o /dev/null -w "%{http_code}" "$@"
3830
}
3931

4032
# ============================================================

0 commit comments

Comments
 (0)