Skip to content

Commit 6b5c6e4

Browse files
chore: Add OIDC permissions for trusted publishing (#249)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 8dfab4c commit 6b5c6e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/validate.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ jobs:
4747
release:
4848
needs: main
4949
runs-on: ubuntu-latest
50+
permissions:
51+
contents: write # to be able to publish a GitHub release
52+
id-token: write # to enable use of OIDC for npm provenance
53+
issues: write # to be able to comment on released issues
54+
pull-requests: write # to be able to comment on released pull requests
55+
env:
56+
NPM_CONFIG_PROVENANCE: 'true'
5057
if:
5158
${{ github.repository == 'kentcdodds/kcd-scripts' &&
5259
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha',
@@ -82,4 +89,3 @@ jobs:
8289
]
8390
env:
8491
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)