Skip to content

fix: add claude.yml template + checkout audit check#63

Merged
don-petry merged 1 commit intomainfrom
claude/issue-33-20260406-0341
Apr 6, 2026
Merged

fix: add claude.yml template + checkout audit check#63
don-petry merged 1 commit intomainfrom
claude/issue-33-20260406-0341

Conversation

@claude
Copy link
Copy Markdown
Contributor

@claude claude Bot commented Apr 6, 2026

Summary

  • Adds standards/workflows/claude.yml — canonical copy-paste template for all repos, with actions/checkout in both claude and claude-issue jobs and REQUIRED annotations so the step is never silently removed.
  • Adds check_claude_workflow_checkout() to scripts/compliance-audit.sh — detects repos where either job is missing checkout and raises an error finding. Wired into the main audit loop so the weekly scan auto-surfaces affected repos.
  • Updates standards/ci-standards.md — prominent callout that both jobs need checkout, pointer to the new template.

Root Cause

The recent org-wide PRs (broodly#70, markets#54, TalkTerm#49, ContentTwin#31) added a Checkout repository step only to the claude-issue job. The claude job (PR reviews / @claude mentions) was left without one. claude-code-action reads CLAUDE.md and AGENTS.md from the working tree; without checkout it errors on every PR-triggered run.

Closes #33

Generated with Claude Code

Root cause: the recent org-wide PRs added checkout only to the
claude-issue job, leaving the claude job (PR reviews / @claude
mentions) without one. claude-code-action reads CLAUDE.md and
AGENTS.md from the working tree; without checkout it errors on
every PR-triggered run.

Changes:
- standards/workflows/claude.yml: canonical copy-paste template
  with checkout in both jobs, matching the other templates in
  standards/workflows/. Both checkout steps are annotated as
  REQUIRED to prevent silent removal.
- scripts/compliance-audit.sh: new check_claude_workflow_checkout()
  detects any repo whose claude or claude-issue job is missing
  checkout and raises an error finding. Wired into the main audit
  loop so weekly scans surface affected repos automatically.
- standards/ci-standards.md: added a visible callout that both jobs
  need checkout and a pointer to the new template file.

Closes #33

Co-authored-by: don-petry <don-petry@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 6, 2026

@don-petry don-petry merged commit 35e788c into main Apr 6, 2026
17 checks passed
@don-petry don-petry deleted the claude/issue-33-20260406-0341 branch April 6, 2026 11:47
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.

fix: Claude Code workflow systematically failing on PR triggers across org

1 participant