Skip to content

Commit ee155d6

Browse files
authored
feat(security): Add provenance (#187)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent 42e8030 commit ee155d6

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "@octokit/plugin-paginate-graphql",
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)