Skip to content

deploy-web.yml documents a production approval gate that does not exist #772

Closed

Description

@thinkclay

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

  1. Correct the comment and say plainly that environment: only selects secrets on this plan. Cheapest, and removes the false assurance.
  2. Add a real gate that works on Free — a workflow_dispatch-only prod deploy with a typed confirmation input, and drop prod from the push: triggers. Matches what the local script already does.
  3. Retire the prod branch from the trigger list entirely, since it is not the release mechanism, and leave production releases to deploy-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 prod branch 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions