Skip to content

Commit 8b5b8b7

Browse files
authored
chore: npm publish provenance (#1601)
1 parent ae2c23e commit 8b5b8b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release-please.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
needs: release-please
3131
if: ${{ needs.release-please.outputs.release_created }}
3232
runs-on: ubuntu-latest
33+
permissions:
34+
contents: read
35+
id-token: write
3336
steps:
3437
- name: Harden Runner
3538
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
@@ -41,6 +44,6 @@ jobs:
4144
with:
4245
node-version: lts/*
4346
registry-url: 'https://registry.npmjs.org'
44-
- run: npm publish --access public
47+
- run: npm publish --provenance --access public
4548
env:
4649
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)