Repository navigation
Conversation
darkobas2
had a problem deploying
to
gemini-review
November 14, 2026 08:37 — with
GitHub Actions
Failure
Contributor
Gemini review: passReviewed The PR updates the GitHub release workflow to generate a short-lived GitHub App token scoped to a protected environment instead of using a static PAT, pins the release actions to commit SHAs, and adds explicit permissions to workflows. Note that granting workflow-level pull-requests: write permission in tests.yaml gives all test steps write access to PRs when triggered from internal branches.
Automated check. High/critical findings block merging; a human approval is still required. False positive? Ask devops to bypass. |
slapec93
approved these changes
Nov 16, 2026
The app token step handles the bee-runner private key, so a moved tag on any action in this job could leak it. Pin every action here to a full commit SHA and request only the permissions the job needs.
…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.
darkobas2
had a problem deploying
to
gemini-review
November 16, 2026 14:01 — with
GitHub Actions
Error
Contributor
|
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.
Switches release-please from the bee-worker personal access token to a short-lived token for the
bee-runnerGitHub App.Why: release tags will soon be restricted by a ruleset so that only CI (the
bee-runnerapp) and org owners can create them. A personal token can't be a ruleset bypass, and it is a long-lived credential tied to one account.bee-runner[bot]instead ofbee-worker.GITHUB_TOKEN) start workflows.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).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.