ci: pin dependency-audit reusable workflow to SHA (closes #87)#128
ci: pin dependency-audit reusable workflow to SHA (closes #87)#128
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR pins a reusable GitHub Actions workflow reference in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
@don-petry — this PR pins the |
|
There was a problem hiding this comment.
Pull request overview
Pins the dependency-audit reusable workflow callsite to an immutable commit SHA to comply with the org action-pinning policy (remediating issue #87).
Changes:
- Update
.github/workflows/dependency-audit.ymlto referencepetry-projects/.githubreusable workflow by full commit SHA instead of@v1.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| jobs: | ||
| dependency-audit: | ||
| uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@v1 | ||
| uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@ee22b427cbce9ecadcf2b436acb57c3adf0cb63d # v1 |
There was a problem hiding this comment.
The header comment says editors "MUST NOT change ... the uses: line", but this workflow now requires updating the uses: ref (SHA) over time to stay current/compliant. Consider tweaking the guidance to something precise like “do not change the workflow path/job name; only update the pinned ref when bumping versions,” to avoid misleading future edits.
Automated review — APPROVEDRisk: LOW SummarySingle-line change pinning a reusable workflow reference from a floating tag (@v1) to a full commit SHA, satisfying the org-level action-pinning policy and closing issue #87. All CI checks pass (CodeQL, SonarCloud, AgentShield, CodeRabbit); no new issues or security hotspots detected. FindingsInfo
CI statusAll checks green (CodeQL, SonarCloud, AgentShield, CodeRabbit). Reason codes: Reviewed by the don-petry PR-review cascade (triage: haiku 4.5 → deep: sonnet 4.6 + duck: gpt-5.4 → audit: opus 4.6). Reply with |



Summary
dependency-audit-reusable.ymlreusable workflow reference from@v1to its full commit SHA to satisfy the org-level action-pinning policy.Change
SHA was resolved via
gh api repos/petry-projects/.github/git/refs/tags/v1.The
# v1comment is retained for human readability.Closes #87
Generated with Claude Code
Summary by CodeRabbit