Skip to content

fix: correct reusable workflow path syntax (remove duplicate .github)#154

Merged
don-petry merged 2 commits intomainfrom
fix/reusable-workflow-paths-double-github
Apr 21, 2026
Merged

fix: correct reusable workflow path syntax (remove duplicate .github)#154
don-petry merged 2 commits intomainfrom
fix/reusable-workflow-paths-double-github

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

Summary

Fixes the root cause of failing compliance PRs across 5 petry-projects repos.

Changes

  • claude.yml: Changed petry-projects/.github/.github/workflows/claude-code-reusable.ymlpetry-projects/.github/workflows/claude-code-reusable.yml
  • agent-shield.yml: Changed petry-projects/.github/.github/workflows/agent-shield-reusable.ymlpetry-projects/.github/workflows/agent-shield-reusable.yml

The incorrect path with duplicate .github/ segment prevented GitHub Actions from finding the reusable workflows, causing "workflow not found" failures.

Impact

This fix will unblock regeneration of failing PRs in:

These PRs were auto-generated with the broken path from these template files.

Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com

The workflow references were using an incorrect path with duplicate
'.github/' segment: 'petry-projects/.github/.github/workflows/...'

This caused failures in all child repos trying to call these reusables
because GitHub Actions couldn't find the workflow at that path.

Corrected to: 'petry-projects/.github/workflows/...'

This fix will resolve failing compliance PRs across markets, ContentTwin,
TalkTerm, and bmad-bgreat-suite that pinned these workflows.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

Warning

Rate limit exceeded

@don-petry has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 13 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 59 minutes and 13 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4a4b9878-eb03-4b7e-9c66-e88716cc6892

📥 Commits

Reviewing files that changed from the base of the PR and between 492f3eb and 715084f.

📒 Files selected for processing (3)
  • .github/workflows/agent-shield.yml
  • .github/workflows/claude.yml
  • scripts/compliance-audit.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/reusable-workflow-paths-double-github

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.

Adds validation to catch the duplicate .github/ segment issue in reusable
workflow references:
  - BROKEN: uses: petry-projects/.github/.github/workflows/...
  - CORRECT: uses: petry-projects/.github/workflows/...

This check will flag any workflow that incorrectly references reusable
workflows from the org .github repository with the doubled path segment.

This prevents future auto-generated compliance PRs from seeding the
broken path syntax across all org repositories.

Resolves the root cause of widespread CI failures in compliance PRs.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@don-petry
Copy link
Copy Markdown
Contributor Author

Follow-up: Compliance Audit Enhancement Added

In addition to fixing the template files, I've added a new compliance audit check that will catch this issue in the future:

New Check: check_reusable_workflow_paths()

  • Detects the broken syntax: petry-projects/.github/.github/workflows/
  • Flags it as an error during the weekly compliance audit
  • Prevents future auto-generated PRs from seeding the bad path

This ensures the issue won't recur across the org even if accidentally introduced.

@sonarqubecloud
Copy link
Copy Markdown

@don-petry don-petry merged commit 956b396 into main Apr 21, 2026
16 checks passed
@don-petry don-petry deleted the fix/reusable-workflow-paths-double-github branch April 21, 2026 01:30
don-petry added a commit to petry-projects/markets that referenced this pull request Apr 21, 2026
fix: correct reusable workflow path (remove duplicate .github/ segment)

Changed: petry-projects/.github/.github/workflows/claude-code-reusable.yml
To:      petry-projects/.github/workflows/claude-code-reusable.yml

The path syntax was incorrect. When calling a reusable workflow from
another repository, the format is owner/repo/path/to/workflow.
The first .github is the repository name, not a path segment.

This fix resolves the "claude-code / claude" CI failure.

Relates to: petry-projects/.github#154

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
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.

1 participant