Repository navigation
ci: create chart tags and releases as the bee-releaser app - #240
Merged
Merged
Conversation
…environment The bee-runner key is an org secret, so any workflow on any branch can read it and mint a token that creates tags, bypassing the approval. The new release app's key lives only in this repo's release environment, which only runs from the default branch (and, for cut-release, after a second person approves).
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.
chart-releaser now creates chart tags and releases as the bee-runner app instead of with the
CR_TOKENpersonal access token.Why: after the 2026-11-09 supply chain incident, a ruleset will restrict tag creation to org owners and the bee-runner app, as on
bee. With the personal token, chart releases would stop working once that ruleset is on.Also:
contents: writepermissions: contents: writeexplicitly (the checkout token pushes the index togh-pages)Before merging: the repo needs access to the
BEE_RUNNER_KEYorg secret (devops). After merging,CR_TOKENcan be deleted.Update: tags are now created by the
bee-releaserapp, not bee-runner.The bee-runner key is an org secret, so any workflow on any branch could read it and create tags without approval (thanks for the review). The new app's key is stored only in this repo's
release/release-cienvironment (RELEASE_APP_KEY, app id invars.RELEASE_APP_ID). That environment only runs from the default branch, and for cut-release only after a second person approves. Tag rulesets will allow only org owners and this app.Do not merge before devops has set up the environment (
infra/ansible/github-release-app.yml).