Skip to content

Commit f5be11f

Browse files
authored
feat: use trusted publishing (#22)
1 parent 94bad08 commit f5be11f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release-plz.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
release-plz-release:
1111
name: Release-plz release
1212
runs-on: ubuntu-latest
13+
environment: crates-io
1314
# Prevent multiple releases from running at the same time
1415
concurrency:
1516
group: release-plz-release
@@ -37,7 +38,8 @@ jobs:
3738
command: release
3839
env:
3940
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
40-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
41+
# Uses trusted publishing via OIDC (id-token: write permission)
42+
# No CARGO_REGISTRY_TOKEN needed
4143

4244
# Create a PR with the new versions and changelog, preparing the next release.
4345
release-plz-pr:
@@ -64,4 +66,3 @@ jobs:
6466
command: release-pr
6567
env:
6668
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
67-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)