Repository navigation
Description
Found while preparing a production release.
.github/workflows/deploy-web.yml carries this above the job:
# Environment gate — production requires manual approval
environment: ${{ github.ref == 'refs/heads/prod' && 'production' || ... }}There is no such gate. Every environment on the repo has zero protection rules:
Production protection_rules=0 reviewers=0 can_admins_bypass=true
Preview protection_rules=0 reviewers=0 can_admins_bypass=true
dev protection_rules=0 reviewers=0 can_admins_bypass=true
Required reviewers on an environment are a paid feature for private repositories, and this org is on Free — the same constraint that keeps .github/rulesets/main.json unapplied and makes main pushable (#747's workflow says so explicitly). So environment: here selects which secrets load and nothing else.
Why it is worth fixing rather than shrugging at
A push to prod deploys to scaffald.com immediately, with no confirmation. The comment says otherwise, and it is the kind of comment someone reads right before deciding a push is safe. The local path is honest about this — scripts/deploy-web-eas.sh prod stops and demands you type deploy prod — so the two release routes currently disagree about how guarded production is.
Compounding it: the prod branch is at 19cd67185 from 2026-04-21, 477 commits behind main, and has never triggered this workflow. Production has been released from the local script the whole time. So the branch does not describe what is deployed, while still being wired to deploy whatever is pushed to it.
Options
- Correct the comment and say plainly that
environment:only selects secrets on this plan. Cheapest, and removes the false assurance. - Add a real gate that works on Free — a
workflow_dispatch-only prod deploy with a typed confirmation input, and dropprodfrom thepush:triggers. Matches what the local script already does. - Retire the
prodbranch from the trigger list entirely, since it is not the release mechanism, and leave production releases todeploy-web-eas.sh.
My preference is 1 + 3: make the comment true, and stop having a five-month-stale branch wired to production. 2 is worth doing if the CI path should become the real release route.
Acceptance
- No comment in the repo claims an approval gate that is not enforced
- Either the
prodbranch reflects what is deployed, or it no longer triggers a production deploy - The chosen behaviour is written down in docs/agents/SSR-DEPLOY.md or RELEASE-PROCESS.md
Related: #747 (main is unprotected for the same plan reason), #486.
Activity
ci(deploy): stop deploy-web.yml claiming things it does not do (#779)