Skip to content

tighten workflow GITHUB_TOKEN permissions to contents:read#181

Merged
iicky merged 1 commit into
mainfrom
harden/workflow-permissions
May 2, 2026
Merged

tighten workflow GITHUB_TOKEN permissions to contents:read#181
iicky merged 1 commit into
mainfrom
harden/workflow-permissions

Conversation

@iicky

@iicky iicky commented May 2, 2026

Copy link
Copy Markdown
Owner
  • replace permissions: read-all with permissions: contents: read at the workflow level in ci.yaml, release.yaml, node.yaml, and python.yaml so jobs that don't override get the minimum needed for actions/checkout and nothing else
  • add explicit permissions: {} on the test-gate job in ci.yaml — it doesn't check out code or hit any API, so it should hold no token scopes at all
  • jobs that need extra scopes (vhs publish, release write, codeql security-events, OIDC publishers) already have their own per-job permissions: blocks and are unaffected

@iicky iicky merged commit 1f25d9a into main May 2, 2026
36 checks passed
@iicky iicky deleted the harden/workflow-permissions branch May 2, 2026 19:32
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