Skip to content

fix(ci): pin agent-shield reusable workflow to SHA#100

Open
don-petry wants to merge 2 commits intomainfrom
claude/issue-85-20260414-1311
Open

fix(ci): pin agent-shield reusable workflow to SHA#100
don-petry wants to merge 2 commits intomainfrom
claude/issue-85-20260414-1311

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

Summary

  • Pins petry-projects/.github/.github/workflows/agent-shield-reusable.yml from the floating @v1 tag to its SHA 208ec2d69b75227d375edf8745d84fbac05a76b2
  • Adds an inline # v1 comment so the tag intent remains readable
  • Resolves the compliance audit finding raised in the issue

Closes #85

Generated with Claude Code

Pin petry-projects/.github/.github/workflows/agent-shield-reusable.yml
to SHA 208ec2d69b75227d375edf8745d84fbac05a76b2 (v1) per the
org-wide action-pinning policy.

Closes #85

Co-authored-by: don-petry <don-petry@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 13:12
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 14, 2026

Warning

Rate limit exceeded

@github-actions[bot] has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 30 seconds before requesting another review.

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 51 minutes and 30 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: fabb194f-ebba-4de2-983e-a67e3655b8cc

📥 Commits

Reviewing files that changed from the base of the PR and between 051f051 and 781b59a.

📒 Files selected for processing (1)
  • .github/workflows/agent-shield.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-85-20260414-1311

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins the agent-shield reusable workflow reference to an exact commit SHA to satisfy the repository’s action/workflow pinning compliance requirement (Issue #85).

Changes:

  • Updated .github/workflows/agent-shield.yml to reference petry-projects/.github/.github/workflows/agent-shield-reusable.yml by commit SHA instead of the floating @v1 tag.
  • Added an inline # v1 comment to preserve the intended version readability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@don-petry
Copy link
Copy Markdown
Contributor Author

Automated review — APPROVED

Risk: LOW
Reviewed commit: 413c3eefcd10fd0a000eef5d63bafaefe259d37f
Cascade: triage → deep (triage: haiku 4.5 → deep: sonnet 4.6 + duck: gpt-5.4 → audit: opus 4.6)

Summary

This PR pins a reusable workflow reference from the floating @v1 tag to a specific commit SHA (208ec2d69b75227d375edf8745d84fbac05a76b2) in .github/workflows/agent-shield.yml, directly addressing compliance audit finding #85. The change is a 1-line diff that improves supply-chain security by replacing a mutable tag with an immutable SHA, and all CI gates (CodeQL, SonarCloud, dependency audit) pass with zero findings.

Findings

Info

  • .github/workflows/agent-shield.yml:33 — Pinning reusable workflow to SHA instead of floating tag @v1 is the correct remediation for supply-chain security — prevents tag mutation attacks.
  • .github/workflows/agent-shield.yml:33 — Inline '# v1' comment preserves human-readable version intent alongside the pinned SHA — good practice.
  • All status checks pass: CodeQL (actions + python), SonarCloud (0 new issues, 0 security hotspots), dependency audit, Claude Code — no failures.
  • Triage escalated due to output-validation failure (triage-output-invalid), not a substantive risk signal — no additional concerns found on deep review.

CI status

All status checks pass: CodeQL (actions + python), SonarCloud (0 new issues, 0 security hotspots), dependency audit, Claude Code — no failures.

Note: GitHub does not allow approving your own PR — posting as a comment instead of a formal approval review.


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 @don-petry if you need a human.

@don-petry don-petry enabled auto-merge (squash) April 16, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compliance: unpinned-actions-agent-shield.yml

2 participants