summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-06-03 09:23:56 +0700
committerGitHub <[email protected]>2026-06-03 09:23:56 +0700
commit31c73a3bbba4fb228025a5b09d8d024c0e5b04c1 (patch)
treef23e9a248ac18fb3249f141138323f62b00e17e5
parent5004a24b2cceffbe998a5238f625da97537f5de7 (diff)
parentd585977d9275d70a75003529136dec2f3de9a875 (diff)
Merge pull request #3667 from hathach/ci-claude-review-allowed-bots
ci: allow claude[bot] pushes in code review workflow
-rw-r--r--.github/workflows/claude-code-review.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml
index 4a0e4639b..97950e888 100644
--- a/.github/workflows/claude-code-review.yml
+++ b/.github/workflows/claude-code-review.yml
@@ -21,7 +21,7 @@ jobs:
permissions:
contents: read
pull-requests: write
- issues: write # use_sticky_comment posts/updates a PR comment via the issues API
+ issues: write # Claude posts the review comment via the issues API
id-token: write
actions: read # Required for Claude to read CI results on PRs
@@ -36,13 +36,17 @@ jobs:
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ # Allow claude[bot]'s own pushes to be handled gracefully (skip) instead
+ # of erroring out the workflow
+ allowed_bots: 'claude'
# Pairs with the actions: read permission so Claude can read CI results
additional_permissions: |
actions: read
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
plugins: 'code-review@claude-code-plugins'
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
- # Reuse one comment instead of posting a new one each push
- use_sticky_comment: true
+ # TEMPORARY: expose the full Claude transcript in the Actions log for
+ # debugging. Revert to remove once done.
+ show_full_output: true
claude_args: '--max-turns 20'
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md