fix(ci): use GitHub App token for homebrew-tap push#39
Merged
pjcdawkins merged 2 commits intomainfrom Apr 9, 2026
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves security by replacing the broad GITHUB_TOKEN with a scoped GitHub App token specifically for the homebrew-tap repository. The changes involve generating a GitHub App token during release workflows and updating GoReleaser configurations to use this dedicated token for Homebrew and Scoop tap updates.
Changes:
- Adds a new workflow step to generate a GitHub App token scoped to the
homebrew-taprepository usingactions/create-github-app-token@v2 - Replaces all 4 instances of
GITHUB_TOKENwithTAP_GITHUB_TOKENin GoReleaser's brew and scoop repository configurations - Token generation is gated behind the same conditional as the release step to ensure it only runs during actual releases
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.goreleaser.yaml |
Updates all homebrew-tap token references from GITHUB_TOKEN to TAP_GITHUB_TOKEN (4 instances across brews and scoops) |
.github/workflows/release.yml |
Adds GitHub App token generation step and passes the scoped token to GoReleaser as TAP_GITHUB_TOKEN environment variable |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pjcdawkins
approved these changes
Apr 9, 2026
Contributor
pjcdawkins
left a comment
There was a problem hiding this comment.
I'm ok with the APP_ generic secret name
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
upsun/homebrew-tapusingactions/create-github-app-token@v2GITHUB_TOKENwithTAP_GITHUB_TOKENin all GoReleaser brew/scoop repository configsif:condition as the release step, so it's only minted during actual releasesTest Plan
workflow_dispatchwith a tag and verify the token step runs and taps are updated