Skip to content

Commit a90799a

Browse files
authored
feat(security): Add provenance (#2653)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent 353e0d5 commit a90799a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/release.yml

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

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,8 @@
108108
},
109109
"engines": {
110110
"node": ">= 18"
111+
},
112+
"publishConfig": {
113+
"provenance": true
111114
}
112115
}

0 commit comments

Comments
 (0)