Skip to content

Commit 41bbe37

Browse files
matejclaude
andcommitted
Support custom GitHub token for branded reviews
Use env.GITHUB_TOKEN if provided by the caller, otherwise fall back to github.token. This allows users to pass a custom GitHub App token for branded review comments. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ecf0327 commit 41bbe37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ runs:
216216
if: steps.claudecode-check.outputs.enable_claudecode == 'true'
217217
shell: bash
218218
env:
219-
GITHUB_TOKEN: ${{ github.token }}
219+
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN || github.token }}
220220
GITHUB_REPOSITORY: ${{ github.repository }}
221221
PR_NUMBER: ${{ github.event.pull_request.number }}
222222
ANTHROPIC_API_KEY: ${{ inputs.claude-api-key }}
@@ -360,7 +360,7 @@ runs:
360360
if: github.event_name == 'pull_request' && inputs.comment-pr == 'true' && steps.claudecode-check.outputs.enable_claudecode == 'true'
361361
shell: bash
362362
env:
363-
GITHUB_TOKEN: ${{ github.token }}
363+
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN || github.token }}
364364
CLAUDECODE_FINDINGS: ${{ steps.claudecode-scan.outputs.findings_count }}
365365
SILENCE_CLAUDECODE_COMMENTS: ${{ steps.claudecode-check.outputs.silence_claudecode_comments }}
366366
DISMISS_STALE_REVIEWS: ${{ inputs.dismiss-stale-reviews }}

0 commit comments

Comments
 (0)