- A missing secret stops the production deploy in its first step.
deploy-prod.ymlnow begins with a check of its eight required secrets:CF_API_TOKEN,ACCOUNT_ID,DATABASE_URL,BETTER_AUTH_SECRETand the fourSTORAGE_*. When one is not set, the run fails withmissing required secrets: <names>before it checks out, migrates the production database or uploads a Worker. Until now theSTORAGE_*secrets were first read by the last step, after the migrations. The step is handed only whether each secret is set, never its value. See deploy. (#239) - A test keeps the list honest.
scripts/deploy-secrets.test.mjs(inpnpm test) runs the step's script and fails when its list differs from the secrets the job uses, so a workflow that starts to need a new secret must add it to the check. (#239)
A production deploy names its missing secrets and stops first
The first step of deploy-prod.yml fails with the names of the required secrets that are not set, before checkout, migrations and upload. It never receives a secret's value.
Edit on GitHubDocumentation is in English.