From 80e1784777a674e184d4181d9094e958f5c14da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=C2=B7Dong?= <98630204+GeorgeDong32@users.noreply.github.com> Date: Tue, 14 Oct 2025 01:23:34 +0800 Subject: [PATCH] chore(ci): switch Claude action to custom endpoint (#10701) --- .github/workflows/claude-translator.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-translator.yml b/.github/workflows/claude-translator.yml index 356e10d0f1..23f359021d 100644 --- a/.github/workflows/claude-translator.yml +++ b/.github/workflows/claude-translator.yml @@ -45,7 +45,7 @@ jobs: # See: https://github.com/anthropics/claude-code-action/blob/main/docs/security.md github_token: ${{ secrets.TOKEN_GITHUB_WRITE }} allowed_non_write_users: "*" - claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + anthropic_api_key: ${{ secrets.CLAUDE_TRANSLATOR_APIKEY }} claude_args: "--allowed-tools Bash(gh issue:*),Bash(gh api:repos/*/issues:*),Bash(gh api:repos/*/pulls/*/reviews/*),Bash(gh api:repos/*/pulls/comments/*)" prompt: | 你是一个多语言翻译助手。你需要响应 GitHub Webhooks 中的以下四种事件: @@ -108,3 +108,5 @@ jobs: 使用以下命令获取完整信息: gh issue view ${{ github.event.issue.number }} --json title,body,comments + env: + ANTHROPIC_BASE_URL: ${{ secrets.CLAUDE_TRANSLATOR_BASEURL }}