Repository navigation
Conversation
|
@rain-marvin review |
|
🔎 Reviewing |
|
rain-marvin |
|
@rain-marvin review |
|
🔎 Reviewing |
|
rain-marvin |
|
🔎 Reviewing |
There was a problem hiding this comment.
This PR changes one line in .github/workflows/vercel-prod.yaml. The manual production deploy from main now maps VERCEL_PROJECT_ID from secrets.VERCEL_PROJECT_ID_V7 instead of secrets.VERCEL_PROJECT_ID_V6. A run from main can therefore no longer overwrite v6.raindex.finance, which now deploys only from the v6 branch (#2984).
The claims in the description are correct. A required: true secret in a reusable workflow checks only that the caller passes the key, not that it has a value, so the missing secret becomes an empty string. The Vercel CLI then refuses a set VERCEL_ORG_ID without a VERCEL_PROJECT_ID in vercel pull, before it links, uploads, or deploys anything. The repo has no committed .vercel link to fall back on. The other Vercel paths are unchanged and are not affected: previews still go to the V6 project as preview deployments only, the docs workflows use their own project, and the v6 branch keeps its own production deploy. The approach is sound: it fails closed, adds no fallback, and enabling V7 needs only the one secret. One minor point: the file does not say that the failure is deliberate, and the failure only comes after the full webapp build. No blockers.
claude-opus-5-5 · high · 12 min
Why
v6.raindex.financeis served by the V6 Vercel project and is being frozen on thev6branch. Main's manual production deploy (vercel-prod.yaml) still targeted the V6 project (VERCEL_PROJECT_ID_V6), so a single manual run from main would overwrite v6.raindex.finance.V7 is not ready to ship, so a production deploy from main should fail until V7 is deliberately enabled.
What changed
Only
.github/workflows/vercel-prod.yaml(a one-line change; comments unchanged):VERCEL_PROJECT_IDsecret is now mapped fromsecrets.VERCEL_PROJECT_ID_V7instead ofsecrets.VERCEL_PROJECT_ID_V6. There is no fallback to the V6 secret.workflow_dispatch) with the existingrefs/heads/mainguard. No triggers changed.Not changed:
vercel-preview.yaml(PR previews stay on the V6 project so preview checks keep passing),vercel-docs-*.yaml, rainix. No docs referenced the secret or this deploy.Behaviour until the secret exists
VERCEL_PROJECT_ID_V7does not exist yet, so it resolves to an empty string. rainix-vercel passes it tovercel pullalongside a non-emptyVERCEL_ORG_ID; the Vercel CLI rejects an org ID without a project ID, so the job fails instead of deploying anywhere. The repo has no committed.vercel/link it could fall back to.Required before the first V7 production deploy
An admin must create the
VERCEL_PROJECT_ID_V7repository secret with the V7 Vercel project's ID.