fix(ci): plumb VERCEL_AUTOMATION_BYPASS_SECRET into preview-smoke + visual-diff #17
2 changed files with 10 additions and 2 deletions
9
.github/workflows/preview-smoke.yml
vendored
9
.github/workflows/preview-smoke.yml
vendored
|
|
@ -75,7 +75,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
max_timeout: 120
|
max_timeout: 120
|
||||||
path: /?x-vercel-protection-bypass=${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}&x-vercel-set-bypass-cookie=true
|
# NOTE: do NOT add `&x-vercel-set-bypass-cookie=true` here. Vercel
|
||||||
|
# responds to that with a 307 + Set-Cookie (`_vercel_jwt`), but
|
||||||
|
# axios in Node has no cookie jar — the cookie is dropped before
|
||||||
|
# the followup request, which then 401s. For this one-shot
|
||||||
|
# healthcheck the bare bypass query is enough; the cookie variant
|
||||||
|
# belongs in the future Playwright config where the browser does
|
||||||
|
# have a cookie jar.
|
||||||
|
path: /?x-vercel-protection-bypass=${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
3
.github/workflows/visual-diff.yml
vendored
3
.github/workflows/visual-diff.yml
vendored
|
|
@ -67,7 +67,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
max_timeout: 120
|
max_timeout: 120
|
||||||
path: /?x-vercel-protection-bypass=${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}&x-vercel-set-bypass-cookie=true
|
# See preview-smoke.yml for the no-`set-bypass-cookie` rationale.
|
||||||
|
path: /?x-vercel-protection-bypass=${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue