File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -32,26 +32,23 @@ jobs:
3232 env :
3333 CLAUDE_CODE_OAUTH_TOKEN : ${{ secrets.WARDEN_ANTHROPIC_API_KEY }}
3434 run : |
35+ export CLAUDE_CODE_OAUTH_TOKEN="$(printf '%s' "$CLAUDE_CODE_OAUTH_TOKEN" | tr -d '\n\r\t ')"
3536 echo "Testing Claude Code authentication..."
3637 echo "CLAUDE_CODE_OAUTH_TOKEN is set: $([ -n "$CLAUDE_CODE_OAUTH_TOKEN" ] && echo 'yes' || echo 'no')"
3738 echo "Token length: ${#CLAUDE_CODE_OAUTH_TOKEN}"
3839 echo "Token prefix: ${CLAUDE_CODE_OAUTH_TOKEN:0:10}..."
39- claude -p "Say hi in exactly 3 words" --model claude-3-5-haiku-20241022 --verbose 2>&1 || {
40- echo "---"
41- echo "Claude exited with code $?"
42- echo "Trying with debug output..."
43- CLAUDE_CODE_DEBUG=1 claude -p "Say hi" --model claude-3-5-haiku-20241022 2>&1 || true
44- }
40+ claude -p "Say hi in exactly 3 words" --model claude-3-5-haiku-20241022 --verbose 2>&1
4541
4642 review :
4743 runs-on : ubuntu-latest
44+ env :
45+ CLAUDE_CODE_OAUTH_TOKEN : ${{ secrets.WARDEN_ANTHROPIC_API_KEY }}
4846 steps :
4947 - uses : actions/checkout@v4
5048 with :
5149 fetch-depth : 0
50+ - name : Strip newlines from OAuth token
51+ run : echo "CLAUDE_CODE_OAUTH_TOKEN=$(printf '%s' "$CLAUDE_CODE_OAUTH_TOKEN" | tr -d '\n\r\t ')" >> "$GITHUB_ENV"
5252 - name : Fix warden CLAUDE_CODE_PATH
5353 run : sudo mkdir -p /.local/bin && sudo ln -sf /home/runner/.local/bin/claude /.local/bin/claude
5454 - uses : getsentry/warden@fix/propagate-sdk-errors
55- env :
56- CLAUDE_CODE_OAUTH_TOKEN : ${{ secrets.WARDEN_ANTHROPIC_API_KEY }}
57- # WARDEN_ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
You can’t perform that action at this time.
0 commit comments