Skip to content

Commit 6a5c4d1

Browse files
authored
Migrate to OIDC for trusted publishing to crates.io (#318)
1 parent db813c6 commit 6a5c4d1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ jobs:
2626

2727
- uses: actions-rust-lang/setup-rust-toolchain@v1
2828

29+
- uses: rust-lang/crates-io-auth-action@v1
30+
id: auth
31+
2932
- uses: MarcoIeni/release-plz-action@v0.5
3033
env:
3134
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
35+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
3336

3437
deploy-website:
3538
needs: release-rust-crates

0 commit comments

Comments
 (0)