Skip to content

Commit 9adf1a4

Browse files
authored
feat(security): Add provenance (#420)
This enables provenance. Please note that this PR was created automatically (using Octokit), so it may not be perfect.
1 parent 9ab9253 commit 9adf1a4

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 @@
66
- beta
77
- "*.x"
88
name: Release
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
build:
1118
name: release

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@octokit/rest",
33
"version": "0.0.0-development",
44
"publishConfig": {
5-
"access": "public"
5+
"access": "public",
6+
"provenance": true
67
},
78
"description": "GitHub REST API client for Node.js",
89
"keywords": [

0 commit comments

Comments
 (0)