Skip to content

Commit 204e8ae

Browse files
authored
fix: add id-token permission for cargo publish workflow (#1110)
The cargo-publish job needs id-token: write permission to use trusted publishing with crates.io via OIDC authentication and since it is a re-usable workflow we need to give it permissions here Signed-off-by: James Sturtevant <[email protected]>
1 parent 637abc6 commit 204e8ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/CreateRelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
secrets: inherit
8686
permissions:
8787
contents: read
88+
id-token: write
8889

8990
publish:
9091
# see https://github.com/orgs/community/discussions/26286#discussioncomment-3251208 for why we need to check the ref

0 commit comments

Comments
 (0)