Repository navigation
Move deploy secrets to the production environment - #260
Merged
Merged
Conversation
Add a one-time workflow that copies the repository-level secrets into production. Deploy now stops if one is missing, and Preview skips the Pulumi steps when the preview environment has none of them.
Pulumi PreviewClick to expand preview output |
localden
enabled auto-merge (squash)
November 30, 2026 00:27
localden
disabled auto-merge
November 30, 2026 00:28
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human: @localden
Requested by Den · project thread
Moves the deploy secrets from repository level to the
productionenvironment, as the README describes for the App key. Values don't change.move-secrets-to-production.yml(one-time, run by hand, main only): copies the six secrets intoproductionwithout showing them. It uses no checkout and no third-party actions, checks everything before writing, and refuses to run ifproductionalready has one of them.deploy.yml: stops before changing anything if a secret is missing. Until now a missing Cloudflare token made Pulumi delete the Access policy.preview.yml: whenpreviewhas none of the secrets, validation still runs, the Pulumi steps are skipped, and any earlier preview comment is updated to say so. It fails when only some are there.After merging:
productionasSECRETS_MOVE_TOKEN.SECRETS_MOVE_TOKENand the token itself.Pull requests stop getting a Pulumi preview after step 4. Previews can come back later by adding required reviewers to
previewand then the secrets.Checked locally: formatting, and each changed script run against a stand-in for
gh(success, repeat run, missing value, missing token, failed write). The copy job itself can only run from main, so it has not been run.Generated by Claude Code