Skip to content

Commit fdf0743

Browse files
committed
ci: use trusted publishing for release-plz
1 parent 2a75185 commit fdf0743

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
permissions:
88
contents: write
99
pull-requests: write
10+
id-token: write
1011

1112
jobs:
1213
release:
@@ -21,8 +22,12 @@ jobs:
2122
- name: Install Rust
2223
uses: actions-rust-lang/setup-rust-toolchain@v1.15.3
2324

25+
- name: Authenticate with crates.io
26+
uses: rust-lang/crates-io-auth-action@v1.0.3
27+
id: auth
28+
2429
- name: release-plz
2530
uses: MarcoIeni/release-plz-action@v0.5.127
2631
env:
2732
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
33+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)