Skip to content

Commit e1a45dd

Browse files
aseembits93claude
andcommitted
chore: switch Claude workflows from Foundry to AWS Bedrock
Replace Azure Foundry authentication with AWS Bedrock OIDC in all Claude Code GitHub Actions workflows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fc9cdf8 commit e1a45dd

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

.github/workflows/claude.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,17 @@ jobs:
4242
uv venv --seed
4343
uv sync
4444
45+
- name: Configure AWS Credentials
46+
uses: aws-actions/configure-aws-credentials@v4
47+
with:
48+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
49+
aws-region: ${{ secrets.AWS_REGION }}
50+
4551
- name: Run Claude Code
4652
id: claude
4753
uses: anthropics/claude-code-action@v1
4854
with:
49-
use_foundry: "true"
55+
use_bedrock: "true"
5056
use_sticky_comment: true
5157
allowed_bots: "claude[bot],codeflash-ai[bot]"
5258
prompt: |
@@ -173,12 +179,9 @@ jobs:
173179
2. For each optimization PR:
174180
- Check if CI is passing: `gh pr checks <number>`
175181
- If all checks pass, merge it: `gh pr merge <number> --squash --delete-branch`
176-
claude_args: '--model claude-opus-4-6 --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr checks:*),Bash(gh pr merge:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh api:*),Bash(uv run prek *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(uv run pytest *),Bash(git status*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git diff *),Bash(git checkout *),Read,Glob,Grep,Edit"'
182+
claude_args: '--model us.anthropic.claude-opus-4-6-v1:0 --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh pr checks:*),Bash(gh pr merge:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh api:*),Bash(uv run prek *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(uv run pytest *),Bash(git status*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git diff *),Bash(git checkout *),Read,Glob,Grep,Edit"'
177183
additional_permissions: |
178184
actions: read
179-
env:
180-
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
181-
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}
182185
183186
# @claude mentions (can edit and push) - restricted to maintainers only
184187
claude-mention:
@@ -240,14 +243,17 @@ jobs:
240243
uv venv --seed
241244
uv sync
242245
246+
- name: Configure AWS Credentials
247+
uses: aws-actions/configure-aws-credentials@v4
248+
with:
249+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
250+
aws-region: ${{ secrets.AWS_REGION }}
251+
243252
- name: Run Claude Code
244253
id: claude
245254
uses: anthropics/claude-code-action@v1
246255
with:
247-
use_foundry: "true"
248-
claude_args: '--model claude-opus-4-6 --allowedTools "Read,Edit,Write,Glob,Grep,Bash(git status*),Bash(git diff*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git log*),Bash(git merge*),Bash(git fetch*),Bash(git checkout*),Bash(git branch*),Bash(uv run prek *),Bash(prek *),Bash(uv run ruff *),Bash(uv run pytest *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(gh pr comment*),Bash(gh pr view*),Bash(gh pr diff*),Bash(gh pr merge*),Bash(gh pr close*)"'
256+
use_bedrock: "true"
257+
claude_args: '--model us.anthropic.claude-opus-4-6-v1:0 --allowedTools "Read,Edit,Write,Glob,Grep,Bash(git status*),Bash(git diff*),Bash(git add *),Bash(git commit *),Bash(git push*),Bash(git log*),Bash(git merge*),Bash(git fetch*),Bash(git checkout*),Bash(git branch*),Bash(uv run prek *),Bash(prek *),Bash(uv run ruff *),Bash(uv run pytest *),Bash(uv run mypy *),Bash(uv run coverage *),Bash(gh pr comment*),Bash(gh pr view*),Bash(gh pr diff*),Bash(gh pr merge*),Bash(gh pr close*)"'
249258
additional_permissions: |
250259
actions: read
251-
env:
252-
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
253-
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}

.github/workflows/duplicate-code-detector.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,16 @@ jobs:
4242
}
4343
EOF
4444
45+
- name: Configure AWS Credentials
46+
uses: aws-actions/configure-aws-credentials@v4
47+
with:
48+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
49+
aws-region: ${{ secrets.AWS_REGION }}
50+
4551
- name: Run Claude Code
4652
uses: anthropics/claude-code-action@v1
4753
with:
48-
use_foundry: "true"
54+
use_bedrock: "true"
4955
use_sticky_comment: true
5056
allowed_bots: "claude[bot],codeflash-ai[bot]"
5157
claude_args: '--mcp-config /tmp/mcp-config/mcp-servers.json --allowedTools "Read,Glob,Grep,Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(wc *),Bash(find *),mcp__serena__*"'
@@ -105,10 +111,6 @@ jobs:
105111
- Concrete refactoring suggestion
106112
107113
If no significant duplication is found, say so briefly. Do not create issues — just comment on the PR.
108-
env:
109-
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
110-
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}
111-
112114
- name: Stop Serena
113115
if: always()
114116
run: docker stop serena && docker rm serena || true

0 commit comments

Comments
 (0)