Skip to content

ci: Add top-level permissions to publish-release workflow#1495

Open
Mrtenz wants to merge 1 commit into
mainfrom
mrtenz/publish-release-permissions
Open

ci: Add top-level permissions to publish-release workflow#1495
Mrtenz wants to merge 1 commit into
mainfrom
mrtenz/publish-release-permissions

Conversation

@Mrtenz

@Mrtenz Mrtenz commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

Adds a top-level permissions: contents: read to the publish-release workflow to restrict default token permissions as a security best practice.


Note

Low Risk
CI-only permission hardening with no application logic changes; release jobs that need write access still declare it explicitly.

Overview
Adds workflow-level permissions: contents: read to publish-release.yml so reusable runs default to read-only repo access instead of broader implicit GITHUB_TOKEN scopes.

The publish-release job still sets contents: write for release publishing, and publish-npm keeps its existing contents: read / id-token: write block; jobs without overrides (e.g. publish-npm-dry-run) now inherit the tighter default.

Reviewed by Cursor Bugbot for commit ffe00f0. Bugbot is set up for automated code reviews on this repo. Configure here.

@Mrtenz Mrtenz marked this pull request as ready for review June 8, 2026 10:34
@Mrtenz Mrtenz requested a review from a team as a code owner June 8, 2026 10:34

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ffe00f0. Configure here.

Comment thread .github/workflows/publish-release.yml
@Mrtenz Mrtenz enabled auto-merge June 8, 2026 10:43
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