Commit cb8bea8
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments