Skip to content

Commit cb8bea8

Browse files
authored
ci: add missing permissions.contents = read (#567)
Was missing in: - #565 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > CI-only permission defaulting with no application or release logic changes; job-level elevated permissions are unchanged. > > **Overview** > Adds **workflow-level** `permissions: contents: read` to the reusable **Publish Release** workflow (`.github/workflows/publish-release.yml`). > > That sets a least-privilege default for the whole callable workflow. The `publish-release` job still requests `contents: write` for release publishing, and `publish-npm` keeps its existing `contents: read` / `id-token: write` job permissions—only the missing top-level `contents: read` block is added, aligned with other workflows in the repo. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 3a7f26a. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 3d488b1 commit cb8bea8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
SLACK_WEBHOOK_URL:
99
required: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
publish-release:
1316
permissions:

0 commit comments

Comments
 (0)