Repository navigation
ci(release): push release tags with a github app token - #13028
Merged
Merged
Conversation
GitHub now refuses the classic personal access token in KILO_APP_RELEASE_TOKEN for this repository. Each release tag push mints a kilo-maintainer installation token scoped to cloud with Contents: write and Workflows: write instead; GITHUB_TOKEN still cannot push a tag whose commit has workflow files that differ from every branch tip.
…ment The kilo-maintainer key becomes a secret of the release environment, which admits only main. The iOS upload marker step revokes its token before eas submit runs, and the kilo-mcp and extension releases check for an existing tag first, so a rerun mints no token.
rgbkrk
approved these changes
Nov 27, 2026
rgbkrk
left a comment
Member
There was a problem hiding this comment.
Reviewed all 3 workflows and verified Kilo-Org/cloud's release environment branch policy (branch:main only).
- Replacing the classic
KILO_APP_RELEASE_TOKENPAT with short-livedkilo-maintainer(Iv23liaoCOSZgYYc58tR) installation tokens via SHA-pinnedactions/create-github-app-token, scoped strictly torepositories: cloud,contents: write, andworkflows: write, cleanly narrows the blast radius. extension-store-release.ymlandkilo-mcp-release.ymlskip token minting when the tag already exists on reruns.kilo-app-release.ymlrevokes the iOS marker token in anEXITtrap beforeeas submitruns and mints a fresh token forTag release, soeas-clinever runs with a liveworkflows: writetoken.
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.
Why
GitHub now rejects the classic personal access token stored as
KILO_APP_RELEASE_TOKEN("Personal access tokens (classic) are forbidden from accessing this repository"). Every release tag push that uses it fails:kilo-app-release.ymlfails at "Mark the iOS upload", before the iOS and Android store submissions, so no store submissions run.kilo-mcp-release.ymlcannot tag, so no kilo-mcp GitHub release or changelog is produced, and each production deploy run is marked failed (the code itself deploys).extension-store-release.ymlwill fail on its next run.GITHUB_TOKENcannot replace it: GitHub refuses aGITHUB_TOKENtag push when the tagged commit's.github/workflowsdiffers from every branch tip, so the token needs Workflows: write.What changes
kilo-maintainerGitHub App withactions/create-github-app-token(pinned by SHA), scoped to this repository with Contents: write and Workflows: write. The action revokes the token at the end of the job.kilo-app-release.ymlmints one token per push, because an installation token lasts an hour and the store submissions between the two pushes can take longer.KILO_APP_RELEASE_TOKENis no longer referenced.Prerequisite
Repo Actions secret
KILO_MAINTAINER_APP_SECRET(the kilo-maintainer private key, the same name kilocode uses). It is being added before merge. After the first successful release tag, the old classic token gets revoked and its secret deleted.Verification
On a GCP VM: actionlint and shellcheck on the three workflows (no new findings), shellcheck on each changed push script, and the repository's workflow-wiring test suites (all pass). After merge, the failed kilo-mcp and kilo-app release runs are re-run to produce the missing tags and submissions.