Skip to content

ci(release-please): authenticate via RELEASE_PLEASE_TOKEN PAT#14

Merged
amiwrpremium merged 1 commit into
masterfrom
ci/release-please-pat
Apr 21, 2026
Merged

ci(release-please): authenticate via RELEASE_PLEASE_TOKEN PAT#14
amiwrpremium merged 1 commit into
masterfrom
ci/release-please-pat

Conversation

@amiwrpremium
Copy link
Copy Markdown
Owner

Swaps release-please action from default GITHUB_TOKEN to a fine-grained PAT so the tag-push + PR-creation events fire downstream workflows (ci.yml, release.yml) automatically. Fixes the manual close-reopen + workflow-dispatch dance we did for v0.1.0.

Requires the RELEASE_PLEASE_TOKEN repo secret to exist before merge.

The default GITHUB_TOKEN triggers GitHub's anti-recursion
safeguard: any workflow action taken with that token does NOT
fire downstream workflows. For release-please that means:

- Release PR opened → pull_request event doesn't fire → ci.yml
  never runs → branch protection blocks the merge.
- Release-please tag created on PR merge → push-tag event doesn't
  fire → release.yml (goreleaser) never runs → binaries + .deb
  + .rpm + Homebrew formula never publish automatically.

Both bit us during the v0.1.0 ship. Fix: authenticate the action
with a dedicated fine-grained PAT (RELEASE_PLEASE_TOKEN).
PAT-triggered events count as real user actions, so every
downstream workflow fires normally.

.github/SETTINGS.md updated to document the new secret and its
required scopes (Contents R/W, Pull requests R/W, Workflows R/W,
scoped to this repo only, ≤ 1-year expiration).

After merge: release-please's next run uses the PAT, re-syncs
the existing 0.1.1 release PR (the refreshing commit comes via
PAT so CI fires correctly), and on merge the v0.1.1 tag push
auto-fires goreleaser — no more manual close-reopen +
workflow_dispatch dance.
@amiwrpremium amiwrpremium merged commit 7434055 into master Apr 21, 2026
13 checks passed
@amiwrpremium amiwrpremium deleted the ci/release-please-pat branch April 21, 2026 13:53
amiwrpremium added a commit that referenced this pull request Apr 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.1](v0.1.0...v0.1.1)
(2026-04-21)


### Bug fixes

* **ci:** commit-msg regex accepts multiple parenthesised scopes
([#10](#10))
([fa8a3ff](fa8a3ff))
* **codeql:** check Close() on writable file handles
([#13](#13))
([43c0b80](43c0b80))


### CI

* **release-please:** authenticate via RELEASE_PLEASE_TOKEN PAT
([#14](#14))
([7434055](7434055))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: AMiWR <83715695+amiwrpremium@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant