Skip to content

ci: create release tags with the ethersphere-release app from the release-ci environment - #537

Open
darkobas2 wants to merge 4 commits into
masterfrom
ci/release-app-env
Open

darkobas2 wants to merge 4 commits into
masterfrom
ci/release-app-env

Conversation

@darkobas2

@darkobas2 darkobas2 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

release-please now creates tags and releases as the bee-releaser app, with its key taken from the release-ci environment 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 in vars.RELEASE_APP_ID) is stored only in the release-ci environment, 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 gets actions: read and pull-requests: write.

Docker Hub credentials (release-ci environment)

Image-publishing jobs now run in the release-ci environment, 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.

…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).
@darkobas2
darkobas2 requested a review from Cafe137 as a code owner November 16, 2026 12:37
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant