Skip to content

Commit f97b06b

Browse files
authored
feat(security): Add provenance (#402)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent 90b46a3 commit f97b06b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/release.yml

+7
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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@octokit/auth-token",
33
"publishConfig": {
4-
"access": "public"
4+
"access": "public",
5+
"provenance": true
56
},
67
"type": "module",
78
"version": "0.0.0-development",

0 commit comments

Comments
 (0)