From 981a4ce648a191e163a61f4e36e883e64a583a3c Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 3 Apr 2024 20:39:20 +0200 Subject: [PATCH 1/2] Enable provenance in package.json --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a5169f9..26781230 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "@octokit/rest", "version": "0.0.0-development", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "description": "GitHub REST API client for Node.js", "keywords": [ From 849bda6915229b0306962e7785803f777a5e9b19 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 3 Apr 2024 20:39:20 +0200 Subject: [PATCH 2/2] Add necessary permissions to the release workflow --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7462a35..84e3c07a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,13 @@ - beta - "*.x" 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