Skip to content

Commit 6b3b094

Browse files
authored
Update GitHub Actions workflow for release-plz
1 parent 533f592 commit 6b3b094

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release-plz.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,19 @@ jobs:
1717
name: Release-plz
1818
runs-on: ubuntu-latest
1919
permissions:
20-
pull-requests: write
2120
contents: write
21+
id-token: write
22+
pull-requests: write
2223
steps:
2324
- uses: actions/checkout@v4
2425
with:
2526
fetch-depth: 0
2627
persist-credentials: true # required by release-plz
27-
28+
- uses: rust-lang/crates-io-auth-action@041cce5b4b821e6b0ebc9c9c38b58cac4e34dcc2
29+
id: auth
2830
- name: Run release-plz
2931
id: release-plz
3032
uses: MarcoIeni/release-plz-action@8724d33cd97b8295051102e2e19ca592962238f5 # v0.5.108
3133
env:
3234
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
35+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)