fix: pin agent-shield reusable workflow to SHA#132
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 58 minutes and 55 seconds. ⌛ 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: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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 |
There was a problem hiding this comment.
Pull request overview
Pins the repository’s AgentShield caller workflow to a specific commit SHA to comply with the org’s GitHub Actions pinning policy and resolve the reported compliance finding.
Changes:
- Replaces the reusable workflow reference from
@v1to a full commit SHA. - Adds a
# v1inline comment for human-readable version context.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| jobs: | ||
| agent-shield: | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@v1 | ||
| uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@208ec2d69b75227d375edf8745d84fbac05a76b2 # v1 |
There was a problem hiding this comment.
This file’s header says the source of truth is standards/workflows/agent-shield.yml, but after this change the two files will drift (standards/workflows/agent-shield.yml still uses @v1). To avoid reintroducing noncompliant templates for downstream repos (and to keep the “source of truth” statement accurate), please update the standards template to the same SHA+# v1 comment (or adjust the header if the template is intentionally different).
Automated review — APPROVEDRisk: LOW
SummaryThis PR pins a reusable workflow reference from a mutable tag (@v1) to a pinned SHA per the org's action-pinning policy, resolving compliance issue #104. All CI checks pass (Lint, ShellCheck, CodeQL, SonarCloud, Agent Security Scan). The change is a net security improvement with no risk signals beyond a minor SHA-verification caveat. FindingsMinor
Info
CI statusAll CI checks pass: Lint, ShellCheck, CodeQL, SonarCloud, Agent Security Scan. Reviewed by the don-petry PR-review cascade (triage: haiku 4.5 → deep: sonnet 4.6 → audit: opus 4.6). Reply with |
|
@claude[agent] - Address the open comments. Ensure the standard is also updated with the SHA pinning as part of this PR. |
Agent-Logs-Url: https://github.com/petry-projects/.github/sessions/200b6cd6-33fe-4ae5-aa54-d1043522e755 Co-authored-by: don-petry <36422719+don-petry@users.noreply.github.com>
9a26863 to
fee3ae1
Compare
Updated standards/workflows/agent-shield.yml to pin the reusable workflow to the same SHA (@208ec2d69b75227d375edf8745d84fbac05a76b2) with the Commit: fee3ae1 |
Automated review — APPROVEDRisk: LOW
SummaryThis PR pins a reusable workflow reference from @v1 to a commit SHA in both the live workflow and the standards template, resolving compliance finding #104. All CI checks pass (CodeQL, CodeRabbit, SonarCloud) and the new commit directly addresses the prior review's request to update the standards file. Triage escalated due to an internal output failure, not actual risk signals. FindingsMinor
Info
CI statusAll CI checks passed: CodeQL (SUCCESS), CodeRabbit (SUCCESS), SonarCloud Quality Gate (PASSED, 0 new issues, 0 security hotspots). 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 |
|
|
Auto-rebase failed — merge conflict — this branch has conflicts with Please resolve the conflicts and push: |



Summary
uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@v1to its commit SHA (208ec2d69b75227d375edf8745d84fbac05a76b2)# v1comment for human readability per the org action-pinning policyCompliance
Resolves the compliance finding from the weekly audit:
unpinned-actions-agent-shield.yml.Standard: standards/ci-standards.md#action-pinning-policy
SHA was looked up via:
Closes #104
Generated with Claude Code