fix: restore double .github path in agent-shield and claude reusable refs#181
Conversation
Commit 956b396 incorrectly "fixed" the reusable workflow uses: paths by removing the second .github segment. The correct format for calling a reusable in the org's .github repo is: petry-projects/.github/.github/workflows/<file>.yml@<ref> where the first .github is the repo name and the second .github/workflows/ is the path within that repo. The "fix" broke both agent-shield.yml and claude.yml — all runs since April 21 have failed with 0 jobs (workflow file issue) in 0 seconds. Reverts the uses: lines to the pre-956b396 values. The standards/workflows/ templates and compliance-audit.sh already document the double .github as correct and expected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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. Review rate limit: 0/1 reviews remaining, refill in 41 minutes and 44 seconds.Comment |
There was a problem hiding this comment.
Pull request overview
Restores the correct reusable-workflow uses: path syntax (double .github) for org-level workflow caller stubs so the referenced reusable workflows can be resolved and runs no longer show “0s / 0 jobs” due to a workflow file issue.
Changes:
- Fix
.github/workflows/agent-shield.ymlto call the reusable viapetry-projects/.github/.github/workflows/... - Fix
.github/workflows/claude.ymlto call the reusable viapetry-projects/.github/.github/workflows/...
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/claude.yml | Restores the correct reusable-workflow path for Claude Code’s caller stub. |
| .github/workflows/agent-shield.yml | Restores the correct reusable-workflow path for AgentShield’s caller stub. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| jobs: | ||
| claude-code: | ||
| uses: petry-projects/.github/workflows/claude-code-reusable.yml@main | ||
| uses: petry-projects/.github/.github/workflows/claude-code-reusable.yml@main |
There was a problem hiding this comment.
Good catch on the inconsistency — it's intentional. This .github org repo itself uses @main so it always exercises the latest version of the reusable (since this IS the canonical source). Child repos that copy the stub from standards/workflows/claude.yml use @v1 for stability. The pre-956b396 state also used @main here, so this PR is a pure revert of the broken single-.github change.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary
.githubsegment from theuses:paths inagent-shield.ymlandclaude.yml, breaking both workflows since April 21, 2026.githubpath format that was working before the bad "fix"Why double
.github?The GitHub Actions path format for calling a reusable in the org's
.githubrepository is:So for
petry-projects/.github:petry-projects/.github/.github/workflows/agent-shield-reusable.yml@v1petry-projects/.github/workflows/agent-shield-reusable.yml@v1The
standards/workflows/templates andscripts/compliance-audit.sh(lines 225–234) already document the double.githubas correct. This PR aligns the actual.github/workflows/caller stubs with what the standards say.Test plan
🤖 Generated with Claude Code