Skip to content

ci: scope workflow permissions to minimum required - #5891

Open
wjhsf wants to merge 1 commit into
masterfrom
wjh-ai/minimal-workflow-permissions
Open

ci: scope workflow permissions to minimum required#5891
wjhsf wants to merge 1 commit into
masterfrom
wjh-ai/minimal-workflow-permissions

Conversation

@wjhsf

@wjhsf wjhsf commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add permissions: contents: read to benchmark-release.yml, which previously had no permissions block and fell back to broader default settings.
  • Drop pull-requests: write and packages: write from release.yml — neither scope is exercised by any step in the workflow (no PR API calls; npm publish targets registry.npmjs.org via OIDC provenance, not GitHub Packages). Kept contents: write (push/tag/release) and id-token: write (npm provenance).

Test plan

  • Reviewed every step in both workflows to confirm no removed/added scope is used
  • CI run on this branch to confirm workflows still execute (no write-permission steps triggered by this PR itself)

benchmark-release.yml had no permissions block, defaulting to broader
repo settings. release.yml granted pull-requests: write and packages:
write, neither of which is exercised anywhere in the workflow.

beep boop I'm a silly little robot 🤖
@wjhsf
wjhsf requested a review from a team as a code owner August 25, 2026 16:50
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.

1 participant