ci(pr-review): migrate to claude-code-action v2 (retire raw-API script)#56
Conversation
Replace the raw-API ai_pr_review.py workflow (429 on subscription token) with official anthropics/claude-code-action v2: subscription OAuth, no-network allowlist, opus-4-8, structured verdict + deterministic auto-approve on zero P0. Verified on rozo-rewards-miniapp + rozo-invoice. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a40de58a93
ℹ️ 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".
| - name: Checkout PR head (read-only; never executed with secrets) | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 1 |
There was a problem hiding this comment.
Disable checkout credential persistence
For same-repo PRs from trusted authors, this checkout runs with the workflow's write-scoped GITHUB_TOKEN, and actions/checkout persists that token in local git config unless persist-credentials: false is set. The next step gives Claude Read plus Bash(gh pr comment:*), so a prompt-injected diff can have the agent read the persisted credential and publish it in a PR comment; no later step needs authenticated git, so disable persistence here before handing the workspace to the model.
Useful? React with 👍 / 👎.
Replaces raw-API ai_pr_review.py (429 on subscription token) with official claude-code-action v2: subscription OAuth, no-network allowlist, opus-4-8, structured verdict + auto-approve on zero P0. Removes old ai-pr-review.yml. Verified on rozo-rewards-miniapp + rozo-invoice.
🤖 Generated with Claude Code