Repository navigation
CI: add explicit permissions to all workflow jobs - #67612
Conversation
Greptile SummaryThis PR adds explicit Confidence Score: 5/5Safe to merge — no logic changes, only permission scoping additions that are correct and sufficient for every job. All findings are informational. Every job in the four files performs read-only operations (checkout, install, build, test, lint, Docker image builds with push:false, artifact upload/download via Actions runtime token). The No files require special attention. Reviews (1): Last reviewed commit: "CI: add explicit permissions to all work..." | Re-trigger Greptile |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
permissionsdeclarations to all workflow jobs and workflows that lacked them.github/workflows/ci.yml: addedpermissions: contents: readto all 19 jobs.github/workflows/install-smoke.yml,sandbox-common-smoke.yml,workflow-sanity.yml: added top-levelpermissions: contents: readWhy
GitHub recommends that every workflow and job declare explicit permissions so the
GITHUB_TOKENscope is documented and stays narrow even if repository/organization defaults change. All affected jobs only needcontents: read; no write permissions are required.Verification
actionlintpasses on all 4 filespnpm checkpasses