Skip to content

Commit 9b099e7

Browse files
davidsmfreireclaude
andcommitted
ci(release-plz): switch to RELEASE_PLZ_TOKEN PAT to trigger downstream workflows
The default GITHUB_TOKEN cannot fire downstream workflows when it pushes tags or commits, which is why the maturin PyPI wheel build did not run when release-plz tagged sqlshield-py-v0.0.1. Switch the checkout token and release-plz GITHUB_TOKEN env to a PAT so the tag push is authenticated as a real user and triggers the tag-listening CI workflow. ACTION REQUIRED: Add a new repo secret named `RELEASE_PLZ_TOKEN` with a PAT (classic or fine-grained) granting: - contents: write - pull_requests: write on this repository. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cc3e1b7 commit 9b099e7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release-plz.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,17 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21+
# Use the PAT for checkout too so subsequent pushes (tags,
22+
# release commits) are authenticated as the PAT owner and
23+
# trigger downstream workflows like the maturin CI build.
24+
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
2125
- uses: dtolnay/rust-toolchain@stable
2226
- name: release-plz
2327
uses: MarcoIeni/release-plz-action@v0.5
2428
env:
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
# PAT with `contents: write` and `pull_requests: write`. The
30+
# default GITHUB_TOKEN cannot trigger downstream workflows
31+
# (e.g. tag-driven PyPI wheel builds), so release-plz must
32+
# push tags using a PAT instead.
33+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
2634
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)