You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move the Cloudflare secrets into a production environment #45
The Cloudflare token is a repository secret, so any workflow in the repo can read it. Putting it in a production environment that only main can deploy to means a workflow on another branch never sees it. While we're in there, the deploy's workflow_run trigger should also check that the run was on main.
This needs the token re-entered, so it's easiest to do alongside the next rotation.
Done when CLOUDFLARE_API_TOKEN and the account ID live only in the production environment, that environment allows main alone, and the deploy job checks head_branch == 'main'.
Activity