Skip to content

Commit 2822aab

Browse files
authored
feat(security): Add provenance (#244)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent 368dba4 commit 2822aab

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ name: Release
66
- next
77
- beta
88
- "*.x"
9+
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
10+
permissions:
11+
contents: write # to be able to publish a GitHub release
12+
issues: write # to be able to comment on released issues
13+
pull-requests: write # to be able to comment on released pull requests
14+
id-token: write # to enable use of OIDC for npm provenance
15+
916
jobs:
1017
release:
1118
name: release

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
]
9999
},
100100
"publishConfig": {
101-
"access": "public"
101+
"access": "public",
102+
"provenance": true
102103
},
103104
"engines": {
104105
"node": ">= 18"

0 commit comments

Comments
 (0)