ci: use Toolhive Release App token for release workflows#512
Merged
Conversation
Replaces the expired RELEASE_TOKEN PAT with short-lived tokens minted by the Toolhive Release App (RELEASE_APP_CLIENT_ID + RELEASE_APP_PRIVATE_KEY). App tokens auto-renew per run, removing manual rotation as a failure mode. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the release automation workflows to stop using an expired long-lived PAT and instead mint short-lived GitHub App installation tokens at runtime for creating release PRs and tags/releases.
Changes:
- Add a “Generate GitHub App token” step to both release workflows.
- Use the generated App token for
actions/checkout,releaseo(release PR creation), andgh release create(release tagging workflow).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/create-release-pr.yml | Mint and use a GitHub App token for checkout and releaseo PR creation instead of RELEASE_TOKEN. |
| .github/workflows/create-release-tag.yml | Mint and use a GitHub App token for checkout, tag push, and GitHub Release creation instead of RELEASE_TOKEN. |
eleftherias
approved these changes
May 22, 2026
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.
Summary
RELEASE_TOKENPAT with short-lived tokens minted by the Toolhive Release App in bothcreate-release-pr.ymlandcreate-release-tag.ymlactions/create-github-app-token@v3.2.0withvars.RELEASE_APP_CLIENT_ID(3534099) +secrets.RELEASE_APP_PRIVATE_KEYContext
The latest release attempt failed with
401 Bad credentialswhen releaseo tried to create the release PR — theRELEASE_TOKENPAT has expired. TheToolhive Release Appis already installed on this repo withRead and write access to code, packages, and pull requestsand its credentials are present in the repo secrets/variables; this PR just wires them in.Failing run: https://github.com/stacklok/toolhive-cloud-ui/actions/runs/26281193602
Follow-up after merge
Create Release PRagain to verify the App token flow works end-to-endRELEASE_TOKENrepo secret can be deletedTest plan
Create Release PRworkflow withbump_type=patchand confirm the release PR is created (committer should betoolhive-release-app[bot])Create Release Tagworkflow creates the tag and GitHub Release🤖 Generated with Claude Code