Skip to content

ci: cap GITHUB_TOKEN to contents: read#1279

Merged
yelizhenden-mdb merged 1 commit into
mongodb:mainfrom
arpitjain099:chore/declare-workflow-perms
May 21, 2026
Merged

ci: cap GITHUB_TOKEN to contents: read#1279
yelizhenden-mdb merged 1 commit into
mongodb:mainfrom
arpitjain099:chore/declare-workflow-perms

Conversation

@arpitjain099
Copy link
Copy Markdown
Contributor

The shellcheck workflow only lints shell scripts. No GitHub API writes, so a workflow-level contents: read is the right ceiling for the default GITHUB_TOKEN.

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

shellcheck workflow only lints scripts. No GitHub API writes, so contents: read at the workflow level is appropriate.

Post-CVE-2025-30066 hardening shape (tj-actions/changed-files). yaml.safe_load validated.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099 arpitjain099 requested a review from a team as a code owner May 21, 2026 01:58
@yelizhenden-mdb yelizhenden-mdb changed the title ci(shellcheck): cap GITHUB_TOKEN to contents: read ci: cap GITHUB_TOKEN to contents: read May 21, 2026
@yelizhenden-mdb yelizhenden-mdb merged commit 880efbd into mongodb:main May 21, 2026
7 of 8 checks passed
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