Repository navigation
release: mint the tap and bucket token from a GitHub App (spore-host#746) - #1645
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
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.
Part of spore-host/spore-host#746.
release.yaml: a new step "Mint the tap and bucket token" (actions/create-github-app-tokenv3.3.0, SHA-pinned) mints a one-hour token from thespore-host-releaseApp:owner: spore-host,repositories: homebrew-tap,scoop-bucket,permission-contents: write. GoReleaser gets it in place of the two classic PATs.infra/github-tokens/tokens.json: the two PAT entries become onegithub-appentry forRELEASE_APP_PRIVATE_KEY, whose installation is exactly the tap and the bucket.github_tokens_test.go:TestAppTokensAreMintedNoWiderThanTheInventory, fails any minting step with noowner:, with arepositories:list other than the entry's (unset, it would mint for spawn), or without explicitpermission-*inputs within the entry.Mutation-checked against four changes, each caught: adding spawn to
repositories:, and droppingrepositories:,owner:orpermission-contents:.Docs:
infra/github-tokens/README.mdanddocs/release-tap-token.mddescribe the App, how to rotate its key, and why it must never be installed on spawn.The installer-pins workflow is unchanged: it stays on
GITHUB_TOKENand its issue fallback, because the App must not reach spawn.Verified by the next release: the mint step must be green, and so must GoReleaser's brew and scoop phases.