Route Claude workflows through Agent Gateway (#11428)
This commit is contained in:
@@ -26,6 +26,7 @@ permissions:
|
||||
pull-requests: write
|
||||
issues: write
|
||||
actions: read
|
||||
# Required for claude-code-action's GitHub App token exchange.
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
@@ -58,19 +59,17 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: ☁️ Configure AWS credentials (OIDC)
|
||||
uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3
|
||||
with:
|
||||
role-to-assume: ${{ secrets.AWS_BEDROCK_REVIEW_ROLE_ARN }}
|
||||
aws-region: us-east-2
|
||||
|
||||
- name: 🤖 Claude
|
||||
uses: anthropics/claude-code-action@1623c36729ac1cd5895198cded705a287de7db79 # v1.0.187
|
||||
env:
|
||||
ANTHROPIC_BASE_URL: https://agentgateway.k1.prod.bsky.dev
|
||||
with:
|
||||
use_bedrock: 'true'
|
||||
# Agent Gateway service keys use Authorization: Bearer, the wire
|
||||
# shape emitted by the action's OAuth-token input.
|
||||
claude_code_oauth_token: ${{ secrets.AGENT_GATEWAY_CLAUDE_GH_REVIEW_KEY }}
|
||||
additional_permissions: |
|
||||
actions: read
|
||||
track_progress: true
|
||||
claude_args: |
|
||||
--model global.anthropic.claude-opus-5
|
||||
--model claude-opus-5:api
|
||||
--allowedTools "mcp__github_inline_comment__create_inline_comment,mcp__github_ci__get_ci_status,mcp__github_ci__download_job_log,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
|
||||
|
||||
Reference in New Issue
Block a user