Skip to content

Commit 7eb48d5

Browse files
authored
feat(security): Add provenance (#689)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent 8cc6eb9 commit 7eb48d5

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
@@ -3,6 +3,13 @@
33
branches:
44
- main
55
name: Release
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
build:
815
name: release

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@octokit/plugin-throttling",
33
"version": "0.0.0-development",
44
"publishConfig": {
5-
"access": "public"
5+
"access": "public",
6+
"provenance": true
67
},
78
"type": "module",
89
"description": "Octokit plugin for GitHub's recommended request throttling",

0 commit comments

Comments
 (0)