Skip to content

Commit 43a2bed

Browse files
authored
Add permissions for OIDC in publish.yml
Added permissions for id-token and contents in the publish workflow.
1 parent 9a81c9b commit 43a2bed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [main]
66

7+
permissions:
8+
id-token: write # Required for OIDC: https://docs.npmjs.com/trusted-publishers
9+
contents: read
10+
711
# Ensure that only one instance of this workflow executes at a time.
812
# If multiple PRs are merged in quick succession, there will only ever be one publish workflow running and one pending.
913
concurrency: ${{ github.workflow }}

0 commit comments

Comments
 (0)