Repository navigation
ci: replace Copilot with Claude Code review gate and @claude assistant - #338
Conversation
- Add CLAUDE.md (imports AGENTS.md) and the idle-pr-review skill - Add claude-review.yml: automated PR review with PASS/BLOCK verdict gate (fail-open) - Add claude.yml: @claude assistant restricted to OWNER/MEMBER/COLLABORATOR - Authenticate via Workload Identity Federation (no static API key) - Remove .github/copilot-instructions.md - Document the review gate and @claude in CONTRIBUTING.md and AGENTS.md Refs #327 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code Coverage Report
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 43e133cc20
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| (github.event_name == 'issue_comment' && | ||
| contains(github.event.comment.body, '@claude') && | ||
| contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) || |
There was a problem hiding this comment.
Skip fork PR conversations in the write-token assistant
When a trusted maintainer comments @claude on a fork PR, this issue_comment branch still runs; unlike the review-event branches below, it has no head.repo.full_name guard. The action processes the PR checkout with a write-capable GitHub App token, and the Pester/ScriptAnalyzer commands allowed below execute PR-controlled scripts that can exfiltrate that token. The action passes its GitHub token into the session environment and warns about prompt injection from untrusted PR content. Skip fork PRs on this path or prevent PR-controlled commands from running with the write token.
AGENTS.md reference: AGENTS.md:L145-L150
Useful? React with 👍 / 👎.
Summary
Replaces GitHub Copilot with Claude Code: an automated PR review that acts as a merge gate, plus an interactive
@claudeassistant. Authentication uses Workload Identity Federation (noANTHROPIC_API_KEY).Motivation
See #327.
Type of Change
Changes
CLAUDE.md: imports@AGENTS.md, Claude-specific notes only..claude/skills/idle-pr-review/SKILL.md: review procedure, severity levels (CRITICAL/MAJOR/MINOR/NIT) and verdict rule (BLOCKonly onCRITICAL). Rules are referenced fromAGENTS.md,STYLEGUIDE.md,CONTRIBUTING.mdanddocs/*, not duplicated..github/workflows/claude-review.yml: review onopened/synchronize/reopened/ready_for_review; drafts, forks and Dependabot skipped via jobif:; nopaths-ignore. Fail-open with warning annotation + job summary..github/workflows/claude.yml:@claudeforOWNER/MEMBER/COLLABORATOR, commit signing enabled..github/copilot-instructions.md.CONTRIBUTING.md/AGENTS.md§10: document the review gate, local skill usage and@claude..gitignore: ignore.claude/settings.local.jsonandCLAUDE.local.md.Deviations from / additions to the issue
--json-schema) instead of a verdict file. A file in the workspace could be pre-committed by a PR; structured output also needs no write tools. The verdict is passed to the gate step viaenv:only (no interpolation into the script).allowed_bots: claudein the review, otherwise the action's actor check rejectsclaude[bot]pushes and Claude's own commits would not be re-reviewed.claude.yml:pull_request_review*events run in PR context (OIDCsub=…:pull_request),issues/issue_commenton the default branch (…:ref:refs/heads/main). Review events on fork PRs are skipped (no OIDC token).ANTHROPIC_ORGANIZATION_ID,ANTHROPIC_SERVICE_ACCOUNT_ID,ANTHROPIC_FEDERATION_RULE_ID_PR,ANTHROPIC_FEDERATION_RULE_ID_MAIN, optionalANTHROPIC_WORKSPACE_ID).classify_inline_comments: falseset explicitly (requires an API key).Testing
No PowerShell changes. Local Pester run: 886 passed, 2 failed; both failures are locale-related (German exception messages) and identical on
main.How to test & review
claude-review.ymlitself. The skill is not onmainyet (the action restores.claude/from the base branch), so this first review runs without it; the gate is fail-open.claude.ymlonly runs after merge (comment/issue events use the default-branch workflow).mainruleset and verify the acceptance criteria from Replace GitHub Copilot with Claude Code: PR review gate and @claude assistant #327 on a test PR.Checklist
Related Issues
Closes #327
🤖 Generated with Claude Code