Skip to content

Commit da8dfd9

Browse files
add permissions to publish npm packages with provenance (#124)
* add permissions to publish npm packages with provenance for the reference see https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions * Update yml --------- Co-authored-by: Igor Octaviano <[email protected]>
1 parent 179f0fd commit da8dfd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
types: [published]
55
jobs:
66
build:
7+
permissions:
8+
contents: read
9+
id-token: write
710
runs-on: ubuntu-latest
811
steps:
912
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)