Skip to content

Commit 220ead0

Browse files
authored
feat(security): Add provenance (#261)
* Enable provenance in package.json * Add necessary permissions to the release workflow
1 parent b3c899f commit 220ead0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
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
release:
815
name: release

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,8 @@
5050
],
5151
"@semantic-release/github"
5252
]
53+
},
54+
"publishConfig": {
55+
"provenance": true
5356
}
5457
}

0 commit comments

Comments
 (0)