fix: support CLAUDE_CODE_OAUTH_TOKEN in workflow auth input

This commit is contained in:
Mark Wylde
2026-06-11 20:19:58 +01:00
parent 9e0dd107c5
commit 40cb961bdf
7 changed files with 12 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ jobs:
uses: ./base-action
with:
prompt: ${{ github.event.inputs.test_prompt || 'List the files in the current directory starting with "package"' }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY || secrets.CLAUDE_CODE_OAUTH_TOKEN }}
allowed_tools: "LS,Read"
- name: Verify inline prompt output
@@ -80,7 +80,7 @@ jobs:
uses: ./base-action
with:
prompt_file: "test-prompt.txt"
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY || secrets.CLAUDE_CODE_OAUTH_TOKEN }}
allowed_tools: "LS,Read"
- name: Verify prompt file output