Skip to content

Commit

Permalink
feat(security): Add provenance (#689)
Browse files Browse the repository at this point in the history
* Enable provenance in package.json

* Add necessary permissions to the release workflow
  • Loading branch information
AaronDewes committed Apr 3, 2024
1 parent 8cc6eb9 commit 7eb48d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -3,6 +3,13 @@
branches:
- main
name: Release
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

jobs:
build:
name: release
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -2,7 +2,8 @@
"name": "@octokit/plugin-throttling",
"version": "0.0.0-development",
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"type": "module",
"description": "Octokit plugin for GitHub's recommended request throttling",
Expand Down

0 comments on commit 7eb48d5

Please sign in to comment.