Skip to content

ci: set minimum token permissions on main#2

Open
arpitjain099 wants to merge 1 commit into
pandas-dev:masterfrom
arpitjain099:chore/declare-workflow-perms
Open

ci: set minimum token permissions on main#2
arpitjain099 wants to merge 1 commit into
pandas-dev:masterfrom
arpitjain099:chore/declare-workflow-perms

Conversation

@arpitjain099
Copy link
Copy Markdown

Declares permissions: contents: read at the workflow level for main.yml.

The doc preview workflow is read-only. Setting an explicit minimum scope follows GitHub's hardening guide and the OpenSSF Scorecard Token-Permissions check, and limits blast radius if any third-party action used here is ever compromised (the March 2025 tj-actions/changed-files token-leak incident).

YAML parses cleanly. No other changes.

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