From a55402d4d11c487897e74f46ca94b33ba5135f8f Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 3 Apr 2024 20:37:49 +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 dd6d116..ee6d869 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "name": "@octokit/plugin-paginate-graphql", "publishConfig": { - "access": "public" + "access": "public", + "provenance": true }, "type": "module", "version": "0.0.0-development", From 8875d8097cd4d0bb2da10570be18e60ce634d0ce Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 3 Apr 2024 20:37:50 +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 98a3300..dddb649 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,13 @@ name: Release - beta - "*.x" - debug +# 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: release: name: release