Skip to content

Restrict release workflow permissions - #6095

Draft
Tyriar wants to merge 1 commit into
masterfrom
cursor/release-workflow-least-privilege-aae3
Draft

Restrict release workflow permissions#6095
Tyriar wants to merge 1 commit into
masterfrom
cursor/release-workflow-least-privilege-aae3

Conversation

@Tyriar

@Tyriar Tyriar commented Aug 9, 2026

Copy link
Copy Markdown
Member

Follow-up to #6028.

The existing fork head could not be updated because the GitHub App credential was rejected when modifying a workflow file on that fork. This adds the missing least-privilege permission to the release workflow only:

permissions:
  contents: read

The npm publish step uses NPM_TOKEN, so the workflow does not need write access through GITHUB_TOKEN.

Open in Web Open in Cursor 

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants