Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The `pr-review` action additionally accepts:
When supplied, this token is the single identity for creating reviews,
posting or updating status comments, and resolving addressed automated
review threads.
The review action also forwards it to Claude Code for GitHub authentication instead of requesting a separate GitHub App token through OIDC.
When omitted, publication uses the job token and leaves GitHub thread state
unchanged.
- `model` - optional, defaults to `claude-opus-4-7`.
Expand Down
2 changes: 2 additions & 0 deletions .github/actions/claude-pr-review/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ runs:
continue-on-error: true
uses: anthropics/claude-code-action@c3d45e8e941e1b2ad7b278c57482d9c5bf1f35b3 # v1
with:
github_token: ${{ inputs.github_identity_token }}
claude_code_oauth_token: ${{ inputs.claude_code_oauth_token }}
allowed_bots: ${{ inputs.allowed_bots }}
display_report: false
Expand Down Expand Up @@ -252,6 +253,7 @@ runs:
steps.review.outputs.structured_output == '')
uses: anthropics/claude-code-action@c3d45e8e941e1b2ad7b278c57482d9c5bf1f35b3 # v1
with:
github_token: ${{ inputs.github_identity_token }}
claude_code_oauth_token: ${{ inputs.claude_code_oauth_token }}
allowed_bots: ${{ inputs.allowed_bots }}
display_report: false
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/claude-pr-review/test_review_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ def test_action_exposes_optional_github_identity_token(self):
)
# prepare (announce), publish, and report (retire on failure).
self.assertEqual(action.count(identity_env), 3)
self.assertEqual(
action.count(
"github_token: ${{ inputs.github_identity_token }}"
),
2,
)
self.assertIn(
"GH_RESOLVE_THREADS: "
"${{ inputs.github_identity_token != '' }}",
Expand Down
Loading