Skip to content

Commit 358a91d

Browse files
authored
fix(CI): Move permissions to the workflow level (#5715)
1 parent ed20d19 commit 358a91d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish-on-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
release:
55
types: [published]
66

7+
# https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
8+
permissions:
9+
id-token: write # to enable use of OIDC for npm provenance
10+
contents: read # to enable reading the contents of the release for publishing
11+
712
jobs:
813
build:
914
name: Build Vanilla
@@ -32,10 +37,6 @@ jobs:
3237
name: Publish to NPM
3338
needs: build
3439
runs-on: ubuntu-latest
35-
# https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
36-
permissions:
37-
contents: read # to enable reading the contents of the release for publishing
38-
id-token: write # to enable use of OIDC for npm provenance
3940
steps:
4041
- uses: actions/checkout@v6
4142
- uses: actions/setup-node@v6

0 commit comments

Comments
 (0)