Skip to content

Commit ec5f0c3

Browse files
authored
ci: move to trusted publishing (#84)
1 parent 96e448f commit ec5f0c3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/release-plz.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ on:
1010
- main
1111

1212
jobs:
13-
1413
release-plz-release:
1514
name: Release-plz release
1615
runs-on: ubuntu-latest
1716
environment: Cargo
1817
permissions:
1918
contents: write
19+
id-token: write # required for crates.io OIDC token exchange
2020
steps:
2121
- name: Generate GitHub token
2222
uses: actions/create-github-app-token@v2
@@ -37,12 +37,10 @@ jobs:
3737
command: release
3838
env:
3939
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
40-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4140

4241
release-plz-pr:
4342
name: Release-plz PR
4443
runs-on: ubuntu-latest
45-
environment: Cargo
4644
permissions:
4745
contents: write
4846
pull-requests: write
@@ -69,4 +67,3 @@ jobs:
6967
command: release-pr
7068
env:
7169
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
72-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)