Skip to content

ci: cap GITHUB_TOKEN to contents: read#826

Closed
arpitjain099 wants to merge 1 commit into
prometheus:masterfrom
arpitjain099:chore/declare-workflow-perms
Closed

ci: cap GITHUB_TOKEN to contents: read#826
arpitjain099 wants to merge 1 commit into
prometheus:masterfrom
arpitjain099:chore/declare-workflow-perms

Conversation

@arpitjain099
Copy link
Copy Markdown
Contributor

The ci workflow runs Go build / test only. No GitHub API writes, so workflow-level contents: read is the right cap for the default GITHUB_TOKEN.

Post-CVE-2025-30066 (tj-actions/changed-files) hardening pattern. YAML validated locally.

CI workflow runs Go build/test only; no GitHub API writes. contents: read at workflow level is appropriate.

Post-CVE-2025-30066 hardening pattern. yaml.safe_load validated.

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

jan--f commented May 26, 2026

Seems to be the same as #824

@jan--f jan--f closed this May 26, 2026
@arpitjain099
Copy link
Copy Markdown
Contributor Author

Yes you're right @jan--f, same as #824 (which already merged). Closed this one myself; apologies for the noise.

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