Skip to content

Commit ada805c

Browse files
brevity1swosclaude
andcommitted
ci: harden release-plz — SHA-pin actions, no credential persistence
Pin actions/checkout (v6), dtolnay/rust-toolchain (stable), and MarcoIeni/release-plz-action (v0.5) to commit SHAs so a hijacked moving tag cannot run with access to RELEASE_PLZ_TOKEN / CARGO_REGISTRY_TOKEN, and set persist-credentials: false. release-plz pushes via its env token, so PRs keep triggering CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 68a03e2 commit ada805c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/release-plz.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
name: Release-plz
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
1717
with:
1818
fetch-depth: 0
19-
- uses: dtolnay/rust-toolchain@stable
20-
- uses: MarcoIeni/release-plz-action@v0.5
19+
persist-credentials: false
20+
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
21+
- uses: MarcoIeni/release-plz-action@e8792575c7f2366cf6ff3ccc33ead9ace5b691c7 # v0.5
2122
env:
2223
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
2324
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)