Skip to content

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

Closed
arpitjain099 wants to merge 1 commit into
cloudflare:mainfrom
arpitjain099:ci/add-permissions
Closed

ci(test): scope GITHUB_TOKEN to contents: read#128
arpitjain099 wants to merge 1 commit into
cloudflare:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Drops the default GITHUB_TOKEN scope down to contents: read for test.yml. It only runs pnpm typecheck and pnpm test in a Node matrix, with no calls to the GitHub API beyond the standard checkout.

The other workflow here (semgrep.yml) already declares its permissions. YAML validated locally.

The test workflow just runs `pnpm typecheck` + `pnpm test` in matrix
mode. Nothing needs write access on the default GITHUB_TOKEN, so this
pins it to read-only. The sibling `semgrep.yml` is already hardened.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@mattjohnsonpint
Copy link
Copy Markdown
Contributor

I did this as part of #129. Thanks!

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