Skip to content

Commit 6021b16

Browse files
authored
feat(security): Add provenance (#536)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent 274f72f commit 6021b16

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "@octokit/plugin-enterprise-cloud",
33
"version": "0.0.0-development",
44
"publishConfig": {
5-
"access": "public"
5+
"access": "public",
6+
"provenance": true
67
},
78
"description": "Octokit plugin for GitHub’s Enterprise Cloud REST APIs",
89
"scripts": {

0 commit comments

Comments
 (0)