File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -14,14 +14,6 @@ BASE="https://gh.gordoncode.dev"
1414PASS=0
1515FAIL=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-
2517assert_status () {
2618 local expected=" $1 " actual=" $2 " label=" $3 "
2719 if [[ " $actual " == " $expected " ]]; then
@@ -34,7 +26,7 @@ assert_status() {
3426}
3527
3628fetch () {
37- curl -s -o /dev/null -w " %{http_code}" " ${BYPASS[@]} " " $ @"
29+ curl -s -o /dev/null -w " %{http_code}" " $@ "
3830}
3931
4032# ============================================================
You can’t perform that action at this time.
0 commit comments