Skip to content

ci(test): scope GITHUB_TOKEN to contents: read#74

Open
arpitjain099 wants to merge 1 commit into
solidjs:mainfrom
arpitjain099:chore/workflow-perms
Open

ci(test): scope GITHUB_TOKEN to contents: read#74
arpitjain099 wants to merge 1 commit into
solidjs:mainfrom
arpitjain099:chore/workflow-perms

Conversation

@arpitjain099
Copy link
Copy Markdown

Tests workflow only does checkout + setup-node + pnpm i + pnpm test. No API writes, so contents: read is the right cap for the default token.

CVE-2025-30066 (tj-actions/changed-files) is the recent reminder that any unspoken scope can be exfiltrated from caller workflow logs. YAML validated locally.

Tests workflow only checks out + installs deps + runs pnpm test. No API interaction beyond checkout, so contents: read covers it.

Recent context: CVE-2025-30066 (tj-actions/changed-files) leaked any unspoken GITHUB_TOKEN scope from caller workflow logs. Per-workflow caps make the blast radius predictable. yaml.safe_load validated.

Signed-off-by: Arpit Jain <arpitjain099@gmail.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.

1 participant