diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eba38c3b..1ae23ecf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/package.json b/package.json index 87fd2751..e28bf7e8 100644 --- a/package.json +++ b/package.json @@ -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",