From 9adf1a4a3da67afab4895b22877fa5c93e99bd74 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 3 Apr 2024 21:01:18 +0200 Subject: [PATCH] feat(security): Add provenance (#420) This enables provenance. Please note that this PR was created automatically (using Octokit), so it may not be perfect. --- .github/workflows/release.yml | 7 +++++++ package.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 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": [