Struggling here to get my playwright E2E tests to run during GitHub Actions with Vercel's Protection Bypass Automation.
1: GitHub is Mono Repo with 4 deployments (devSite1, devSite2, prodSite1, prodSite2 2: Vercel deployments are automatic default config, on every push, pr, merge, etc. and I have not disabled those to use GitHub actions for builds and deploys. 3: I don't want preview urls (or any non-prod urls) exposed to the public, so Vercel Deployment Protections is enabled.
Now here is where I am stuck, Vercel Docs say 2 things:
- Use protection-bypass-automation for e2e bypass, (and the example config is even for Playwright. -> https://vercel.com/docs/security/deployment-protection/methods-to-bypass-deployment-protection/protection-bypass-automation
- Use GitHub Actions for running e2e (e.g. Playwright -> https://vercel.com/guides/how-can-i-run-end-to-end-tests-after-my-vercel-preview-deployment
But Vercel System Environment Variables are not available to GitHub actions, so I can't reference the VERCEL_AUTOMATION_BYPASS_SECRET in my GitHub actions YAML or my playwright.config.ts file.
So here's my ask: What am I doing wrong to implement the VERCEL_AUTOMATION_BYPASS_SECRET as described, or are the docs incomplete for usage with GitHub Actions?