ci: pin dependency-audit reusable workflow to SHA - #150
Conversation
Pin petry-projects/.github reusable workflow from @v1 to commit SHA ee22b427cbce9ecadcf2b436acb57c3adf0cb63d to comply with org action-pinning policy. No functional change — same workflow version, now compliant with the CI standards. Closes #103 Co-authored-by: don-petry <don-petry@users.noreply.github.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 — PR ready for review. This is a one-line change pinning the reusable workflow to its commit SHA to resolve the compliance finding in #103. The |
There was a problem hiding this comment.
Pull request overview
Pins the org-level dependency audit reusable workflow reference to an immutable commit SHA to satisfy the action-pinning policy, without changing workflow behavior.
Changes:
- Replaces
@v1with commit SHA@ee22b427cbce9ecadcf2b436acb57c3adf0cb63dfor the reusable workflow call.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Auto-rebase failed — merge conflict — this branch has conflicts with Please resolve the conflicts and push: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
@dev-lead - please fix this PR |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: LOW
Reviewed commit: 25add8952ad0bc7fe482510273251b7bcf7afab5
Review mode: triage-approved (single reviewer)
Summary
One-line change to .github/workflows/dependency-audit.yml that pins the reusable workflow petry-projects/.github/.github/workflows/dependency-audit-reusable.yml from the mutable @v1 tag to commit SHA ee22b427bcbce9ecadcf2b436acb57c3adf0cb63d with a trailing # v1 comment. This is the recommended action-pinning pattern and produces no functional change.
Linked issue analysis
Closes #103 — the weekly compliance audit flagged this workflow as non-compliant with the org action-pinning policy. The fix substantively addresses the finding: the mutable tag is replaced with an immutable SHA, while the # v1 trailing comment preserves human readability. The PR description notes the SHA was re-verified via gh api repos/petry-projects/.github/git/refs/tags/v1 because the v1 tag had moved since the earlier PR #120 attempt.
Findings
None. This is a textbook security-hardening change — moving from a mutable ref to a pinned SHA is exactly what the policy requires, and it's the safer direction (no possibility of a HIGH-risk regression from this diff alone).
Minor note (non-blocking): the branch is currently in a merge-conflict state with main (mergeStateStatus: DIRTY, many auto-rebase-conflict bot comments). That's a merge-readiness concern rather than a code-review concern, but it will need to be resolved before this can land.
CI status
All checks green:
- CodeQL — SUCCESS (Analyze actions / go / javascript-typescript)
- CodeRabbit — SUCCESS
- SonarQube Cloud — Quality Gate passed (0 new issues)
- Copilot reviewer left a descriptive comment with no objections
Reviewed automatically by the PR-review agent (single-reviewer mode: opus 4.7). Reply if you need a human review.
|
Closing due to merge conflict that cannot be auto-rebased. Re-implementing from fresh main via dev-lead. |
Pull request was closed
Summary
petry-projects/.github/.github/workflows/dependency-audit-reusable.ymlfrom@v1to commit SHAee22b427cbce9ecadcf2b436acb57c3adf0cb63d # v1v1tag has moved since the previous attempt (PR ci: pin dependency-audit reusable workflow to SHA #120 used SHAae9709f4...); this PR uses the current correct SHAMotivation
The weekly compliance audit flagged this workflow as non-compliant with the action-pinning policy. Using
@v1(a mutable tag) instead of a pinned SHA means the workflow could silently change without notice.Verification
SHA was looked up via:
Closes #103
Generated with Claude Code