fix(ci): grant callers the permissions their reusable workflows declare - #85
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (7)
🧰 Additional context used🪛 YAMLlint (1.37.1).github/workflows/governance.yml[error] 35-35: syntax error: mapping values are not allowed here (syntax) 🔇 Additional comments (2)
📝 SummarySummary by CodeRabbit
WalkthroughThe governance and secret-scanning jobs now declare explicit GitHub Actions permissions. The changes add ChangesWorkflow permissions
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. A rabbit checks the workflow gate Comment |
|



GitHub refuses these runs at workflow-creation time:
Error calling workflow ... The workflow is requesting '<perm>', but is only allowed '<none>'.Aworkflow_calljob must grant a superset of the callee's declared permissions. This adds the canonical grant (actions: read,contents: read,security-events: write) that the healthy repos already carry.