ci: use RELEASE_PLZ_TOKEN for the Homebrew formula push#58
Merged
Conversation
Reuse the existing RELEASE_PLZ_TOKEN PAT (which already has cross-repo write access) to push the regenerated formula to the tap, instead of requiring a separate HOMEBREW_TAP_TOKEN secret. No new secret to configure. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the release workflow so the Homebrew tap formula regeneration/push uses the existing RELEASE_PLZ_TOKEN PAT rather than requiring a separate HOMEBREW_TAP_TOKEN secret, reducing release configuration overhead while keeping the “skip with warning if unset” behavior.
Changes:
- Switched
update-formulajob token source fromHOMEBREW_TAP_TOKENtoRELEASE_PLZ_TOKEN. - Updated workflow comments and the skip warning message to reference
RELEASE_PLZ_TOKEN. - Updated the tap repo checkout to authenticate with
RELEASE_PLZ_TOKEN.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
85
to
88
| with: | ||
| repository: PeterKneale/homebrew-tap | ||
| token: ${{ secrets.HOMEBREW_TAP_TOKEN }} | ||
| token: ${{ secrets.RELEASE_PLZ_TOKEN }} | ||
| path: homebrew-tap |
Merged
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.
What
Switches the
update-formulajob to push the regenerated tap formula using the existingRELEASE_PLZ_TOKENPAT instead of a newHOMEBREW_TAP_TOKENsecret.That PAT already has cross-repo write access (it is what release-plz uses), so there is now nothing extra to configure for the auto-update to work. The job still skips with a warning if the token is somehow unset, so releases never fail on it.
🤖 Generated with Claude Code