fix(ci): use release bot for Homebrew tap - #50
Conversation
There was a problem hiding this comment.
🟡 Not ready to approve
The workflow’s current commit_email format may prevent GitHub from attributing commits to the GitHub App bot account, undermining a stated goal of the PR.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
This PR updates the release pipeline to publish the Homebrew tap formula using a short-lived GitHub App installation token (putio-release-bot) instead of a long-lived personal access token, and updates distribution documentation accordingly.
Changes:
- Mint a scoped GitHub App installation token for the Homebrew tap publish step and use it for cross-repo formula updates.
- Update the Homebrew publish step to author commits as
putio-release-bot[bot]. - Remove
HOMEBREW_TAP_TOKENfrom the documented release environment requirements.
File summaries
| File | Description |
|---|---|
| docs/DISTRIBUTION.md | Updates release-environment documentation to reflect GitHub App–based Homebrew publishing and removes the PAT secret requirement. |
| .github/workflows/ci.yml | Replaces the Homebrew tap PAT usage with a GitHub App installation token and updates commit attribution inputs for the Homebrew releaser step. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
## [1.2.7](v1.2.6...v1.2.7) (2026-08-03) ### Bug Fixes * **ci:** use release bot for Homebrew tap ([#50](#50)) ([47ad63f](47ad63f))
|
🎉 This PR is included in version 1.2.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
putio-release-botinstallation tokenputio-release-bot[bot]HOMEBREW_TAP_TOKENfrom the documented release environmentChanged
The Homebrew job now scopes its installation token to
putio-cliandhomebrew-tapwith Contents write permission. The pinned Homebrew action uses that same token to read the source release and push the formula commit.Review aids
Risks
HOMEBREW_TAP_TOKENsecret can be deleted after that release succeedsVerification
actionlint .github/workflows/ci.ymlpnpm exec vp run verify— 245 tests passed, including the packed-install smoke and coverage gateSummary by cubic
Switch Homebrew tap publishing to a short‑lived
putio-release-botinstallation token instead of a personal PAT. Formula commits are authored byputio-release-bot[bot]using its canonical noreply address;HOMEBREW_TAP_TOKENis no longer required.actions/create-github-app-tokento mint a token scoped toputio-cliandhomebrew-tapwith Contents write access.Justintime50/homebrew-releaserto use the token and attribute commits toputio-release-bot[bot], deriving the canonical<id>+<app>[bot]@users.noreply.github.comviagh apiand the action’sapp-slug.docs/DISTRIBUTION.mdto removeHOMEBREW_TAP_TOKEN, note bot-authored Homebrew tap commits, and document the two‑repo installation scope.Written for commit 6f25fec. Summary will update on new commits.