Repository navigation
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).
The repo default workflow token becomes read-only, so workflows that need write access say so: release asset uploads get contents: write, the test coverage comparison gets actions: read and pull-requests: write.
Publishing jobs now read DOCKERHUB_USERNAME/PASSWORD from the release-ci environment (per-repo token, limited to this repo's images; default branch and release tags only) instead of the shared org secret.
Quay is deprecated and its org credentials are no longer shared with this repo. Publish to Docker Hub only.
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.
release-please now creates tags and releases as the
bee-releaserapp, with its key taken from therelease-cienvironment instead of the bee-runner org secret.Why: the bee-runner key is an org secret, so any workflow on any branch can read it and mint a token that creates tags, which bypasses the tag ruleset. The new app's key (
RELEASE_APP_KEY, app id invars.RELEASE_APP_ID) is stored only in therelease-cienvironment, which only runs from the default branch. Code only gets there with 2 approvals.Also pins the remaining actions in this workflow to commit SHAs.
Do not merge before devops has set up the environment (
infra/ansible/github-release-app.yml). After merging, the tag ruleset switches its bypass from bee-runner to the new app.Also in this PR: explicit token permissions. After this merges, the repo's default workflow token becomes read-only. Workflows that need write access now declare it: release asset uploads get
contents: write, and the test coverage comparison getsactions: readandpull-requests: write.Docker Hub credentials (release-ci environment)
Image-publishing jobs now run in the
release-cienvironment, which holds a per-repo Docker Hub access token (DOCKERHUB_USERNAME/DOCKERHUB_PASSWORD) limited to this repo's images and usable only from the default branch / release tags. After merge, the shared org-level Docker Hub secret will be unshared from this repo.