From b3ca40aa9c517d9d219abeb52c29cdee953e6381 Mon Sep 17 00:00:00 2001 From: Baiheng Xie <874256269@qq.com> Date: Thu, 19 Feb 2026 22:20:42 +0800 Subject: [PATCH] chore: fix provider & allowedTools --- .github/workflows/claude-code-review.yml | 4 +++- .github/workflows/claude.yml | 4 +++- README.md | 7 +++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 6124b02..612a3aa 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -55,5 +55,7 @@ jobs: # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://docs.claude.com/en/docs/claude-code/cli-reference for available options - claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"' + claude_args: '--allowedTools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"' + env: + ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }} diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 74e6ae5..64111d0 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -47,5 +47,7 @@ jobs: # Optional: Add claude_args to customize behavior and configuration # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://docs.claude.com/en/docs/claude-code/cli-reference for available options - # claude_args: '--allowed-tools Bash(gh pr:*)' + # claude_args: '--allowedTools Bash(gh pr:*)' + env: + ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }} diff --git a/README.md b/README.md index b2d4b5e..0bb7f0a 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,13 @@ To enables/configures ci, create repository variables and secrets as needed: - `CI_DB_DATABASE` - `CI_DB_DRIVER` +### Claude Code Action + +Claude CI workflows (`claude.yml`, `claude-code-review.yml`) require: + +- `ANTHROPIC_API_KEY` - API key for authentication +- `ANTHROPIC_BASE_URL` - Custom API endpoint (set via `env:` block as a workaround until [claude-code-action#840](https://github.com/anthropics/claude-code-action/issues/840) adds native `base_url` input) + ## Deploy ### Docker Setup