Skip to content

Commit fe1538e

Browse files
authored
feat(security): Add provenance (#377)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent bc85afc commit fe1538e

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
@@ -3,6 +3,13 @@ name: Release
33
push:
44
branches:
55
- main
6+
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
7+
permissions:
8+
contents: write # to be able to publish a GitHub release
9+
issues: write # to be able to comment on released issues
10+
pull-requests: write # to be able to comment on released pull requests
11+
id-token: write # to enable use of OIDC for npm provenance
12+
613
jobs:
714
release:
815
name: release

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595
]
9696
},
9797
"publishConfig": {
98-
"access": "public"
98+
"access": "public",
99+
"provenance": true
99100
},
100101
"engines": {
101102
"node": ">= 18"

0 commit comments

Comments
 (0)