Repository navigation
ci: scope the benchmark workflow's checks permission to its report job - #14879
Conversation
`checks: write` sat at the workflow level, granting it to all five jobs, four of which never touch `GITHUB_TOKEN`. Only the report job does, in the Bencher upload step. zizmor's excessive-permissions audit flags the workflow-level grant. It is the one unsuppressed finding in the repository, and because fork PRs run the zizmor action with `advanced-security` off, the action prints its findings and exits non-zero instead of uploading SARIF. That turns the single medium finding into a red check on every fork PR while main stays green. Verified with zizmor 1.30.1, the version CI installs: the run over the repository reports no findings with this change. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01PjkYZtr2fTKD4wu3w1GCz4
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe benchmark workflow removes workflow-wide ChangesBenchmark workflow permissions
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The workflow preserves benchmark reporting while limiting checks-write access to the report job, with no remaining merge-blocking risk. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can ask Qodo to dismiss a finding you disagree with, with your reason on record |
PR Summary by QodoScope benchmark checks permission to the report job
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
`just test-pacquet` excludes every pnpr crate, so cargo never builds `target/debug/pnpr`. `MockInstanceOptions::spawn` runs that binary and `pnpr_command` asserts it exists, so the new startup-cleanup tests failed on all three platforms with "pnpr binary not found". An unfiltered `just test` does build it, which is why a local `just ready` passed. Move `pnpm-registry-mock` into the `test-pnpr` selection instead: pnpr's own integration tests force `CARGO_BIN_EXE_pnpr`, so that build writes the binary before any test runs. Also drop the `checks: write` grant this branch added to the `benchmark` job. No step there creates a check run, and pnpm#14879 has since scoped the permission to `report` on main, so the file now matches main. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013EK4aRsd2brtvY2bBK5gyk
pnpm#14879) `checks: write` sat at the workflow level, granting it to all five jobs, four of which never touch `GITHUB_TOKEN`. Only the report job does, in the Bencher upload step. zizmor's excessive-permissions audit flags the workflow-level grant. It is the one unsuppressed finding in the repository, and because fork PRs run the zizmor action with `advanced-security` off, the action prints its findings and exits non-zero instead of uploading SARIF. That turns the single medium finding into a red check on every fork PR while main stays green. Verified with zizmor 1.30.1, the version CI installs: the run over the repository reports no findings with this change. Claude-Session: https://claude.ai/code/session_01PjkYZtr2fTKD4wu3w1GCz4 Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
pnpm#14879) `checks: write` sat at the workflow level, granting it to all five jobs, four of which never touch `GITHUB_TOKEN`. Only the report job does, in the Bencher upload step. zizmor's excessive-permissions audit flags the workflow-level grant. It is the one unsuppressed finding in the repository, and because fork PRs run the zizmor action with `advanced-security` off, the action prints its findings and exits non-zero instead of uploading SARIF. That turns the single medium finding into a red check on every fork PR while main stays green. Verified with zizmor 1.30.1, the version CI installs: the run over the repository reports no findings with this change.
Summary
checks: writesat at the workflow level ofpacquet-integrated-benchmark.yml, granting it to all five jobs. OnlyreporttouchesGITHUB_TOKEN, in the Bencher upload step, so the grant now lives on that job.zizmor's
excessive-permissionsaudit flags the workflow-level grant, and it is the only unsuppressed finding in the repository. That matters beyond tidiness:zizmor.ymlpassesadvanced-security: falsefor fork PRs, because a fork's read-only token cannot upload SARIF to code scanning. With it off the action prints its findings and exits non-zero instead, so this one medium finding failszizmor latest via PyPIon every fork PR while main stays green. #14795 is the current example.Verified with zizmor 1.30.1, the version the action installs: over the whole repository the run reports
No findings to reportwith this change, against1 mediumwithout it.Only the permission moves; no job's behavior changes.
Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
Written by an agent (Claude Code, claude-opus-5).
🤖 Generated with Claude Code
https://claude.ai/code/session_01PjkYZtr2fTKD4wu3w1GCz4
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit