Skip to content

ci: add read-only token permissions - #18

Open
arpitjain099 wants to merge 1 commit into
preactjs:masterfrom
arpitjain099:chore/restrict-workflow-token-perms
Open

ci: add read-only token permissions#18
arpitjain099 wants to merge 1 commit into
preactjs:masterfrom
arpitjain099:chore/restrict-workflow-token-perms

Conversation

@arpitjain099

Copy link
Copy Markdown

Declares permissions: contents: read on the test workflow.

The workflow only checks out code, installs dependencies via yarn, and runs tests. None of these steps require write access to the repository or other API scopes.

Restricting the token to the minimum needed follows standard hardening guidance for GitHub Actions workflows.

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