chore(actions): enforce minimal workflow permissions - #467
Conversation
Enable zizmor's excessive-permissions audit and deny workflow token permissions by default in the release workflow. Jobs that publish or create releases keep only their explicitly required permissions. Fixes cpplint#466.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe release workflow now disables default GitHub Actions token permissions. The zizmor configuration now checks for excessive permissions. ChangesWorkflow permission hardening
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The change restricts workflow token permissions by default while retaining the explicit permissions needed for publishing and releases; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Fixes #466.
Summary
GITHUB_TOKENpermissions by default at the workflow level withpermissions: {}excessive-permissionsaudit by removing its exclusion fromzizmor.ymlThis follows zizmor's recommended remediation of setting workflow-level permissions to
{}and granting permissions only to jobs that require them.The existing SHA pinning and Dependabot cooldown configuration are intentionally unchanged.
Summary by CodeRabbit