Skip to content

ci: scope workflow token to read-only#131

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

ci: scope workflow token to read-only#131
arpitjain099 wants to merge 1 commit into
facebookresearch:mainfrom
arpitjain099:chore/restrict-workflow-token-perms

Conversation

@arpitjain099
Copy link
Copy Markdown

Adds top-level permissions: contents: read to the CI workflow.

The workflow installs Python dependencies, generates documentation, uploads artifacts, runs tests, and uploads coverage to Codecov (using a separate token). None of these require write access to the repository via GITHUB_TOKEN. Restricting token scope follows least-privilege guidance for GitHub Actions.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant