Repository navigation
ci: run the two-step release via the shared GitHub App - #22
Conversation
Mint a release-scoped app token for the tag pushes and the CLI bump PR (was the default token / Homebrew PAT), attribute release commits to the app, and push the Homebrew formula via a homebrew-tap-scoped app token instead of the long-lived PAT. Mirrors the things3 release flow.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22 +/- ##
=======================================
Coverage 75.81% 75.81%
=======================================
Files 6 6
Lines 769 769
=======================================
Hits 583 583
Misses 112 112
Partials 74 74
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Aligns the repository’s two-step release (library + CLI module bump) with the shared “things3” release flow by using a GitHub App for attribution and short-lived, repo-scoped tokens for release and Homebrew tap updates.
Changes:
- Mint a GitHub App token scoped to this repo and use it for checkout/pushes and for opening/merging the CLI bump PR.
- Mint a separate GitHub App token scoped to
homebrew-tapso GoReleaser can push the formula update without a long-lived PAT. - Update release commit authorship in both the workflow and GoReleaser Homebrew formula commits to
moond4rk-ci[bot].
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.goreleaser.yml |
Updates Homebrew formula commit author identity to the GitHub App bot. |
.github/workflows/release.yml |
Mints and uses GitHub App tokens for repo-scoped release operations and for pushing to homebrew-tap; updates git identity and PR merge behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Bring the two-step (library + CLI module) release in line with the things3 flow, on the shared release GitHub App.
github-actions[bot].homebrew-tapvia a short-lived token scoped to that repo (was the long-livedHOMEBREW_TAP_GITHUB_TOKENPAT); formula-bump commit attributed to the app.Uses
vars.MOOND4RK_CI_RELEASE_APP_CLIENT_ID+secrets.MOOND4RK_CI_RELEASE_APP_PRIVATE_KEY(added to this repo). Requires the app installed on this repo and onhomebrew-tap.