Skip to content

ci: add Claude + Codex automated PR code review - #14

Merged
guohai merged 1 commit into
mainfrom
ci/code-review-workflows
Jul 10, 2026
Merged

ci: add Claude + Codex automated PR code review#14
guohai merged 1 commit into
mainfrom
ci/code-review-workflows

Conversation

@guohai

@guohai guohai commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds automated PR code-review workflows mirroring Agora-Build/Vox:

  • .github/workflows/claude-code-review.yml — split-job design: a read-only agent job (anthropics/claude-code-action) produces the review as an artifact, and a separate model-free job with pull-requests: write posts it. So even a prompt-injecting PR can't reach a write token.
  • .github/workflows/codex-code-review.ymlopenai/codex-action in a read-only sandbox, posts its final message.

Both trigger on pull_request (opened/synchronize/ready_for_review/reopened) and are gated to trusted authors (OWNER/MEMBER/COLLABORATOR) so untrusted fork PRs never get secrets. Copied verbatim from Vox (they're repo-agnostic — use ${{ github.repository }} / context.repo).

⚠️ Required before these work: repo secrets

Atem currently has only CF_ACCOUNT_ID, CF_API_TOKEN, NPM_TOKEN. These workflows need four more (present in Vox):

  • ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL (Claude)
  • OPENAI_API_KEY, OPENAI_BASE_URL (Codex — no trailing slash)

Until they're added, the review jobs will fail on PRs.

Generated with SMT smt@agora.build

Mirror the Agora-Build/Vox review workflows. Both trigger on PRs from
trusted authors (OWNER/MEMBER/COLLABORATOR) and post a review comment.

- claude-code-review.yml: read-only agent job (anthropics/claude-code-action)
  produces the review as an artifact; an isolated model-free job with
  pull-requests:write posts it — so no untrusted PR text ever reaches a
  writer token.
- codex-code-review.yml: openai/codex-action in read-only sandbox, posts
  its final message.

Requires repo secrets ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL, OPENAI_API_KEY,
OPENAI_BASE_URL (copy from the Vox repo).

🤖 Built with SMT <smt@agora.build>
@guohai
guohai merged commit 88facb1 into main Jul 10, 2026
3 checks passed
@guohai
guohai deleted the ci/code-review-workflows branch July 10, 2026 20:51
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