Skip to content

fix: update warden CI auth to use CLAUDE_CODE_OAUTH_TOKEN #21

fix: update warden CI auth to use CLAUDE_CODE_OAUTH_TOKEN

fix: update warden CI auth to use CLAUDE_CODE_OAUTH_TOKEN #21

Workflow file for this run

name: Warden
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
checks: write
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fix warden CLAUDE_CODE_PATH
run: sudo mkdir -p /.local/bin && sudo ln -sf /home/runner/.local/bin/claude /.local/bin/claude
- uses: getsentry/warden@v0
with:
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
- name: Debug API key format
if: always()
run: |
echo "=== Key prefix ==="
echo "${API_KEY:0:10}..."
echo "=== Key length ==="
echo "${#API_KEY} chars"
echo "=== Test with ANTHROPIC_API_KEY ==="
ANTHROPIC_API_KEY="$API_KEY" echo "say hi" | timeout 15 claude --print 2>&1 | head -5 || echo "exit: $?"
echo "=== Test with --key flag variations ==="
echo "say hi" | timeout 15 claude -p --key "$API_KEY" 2>&1 | head -5 || echo "exit: $?"
env:
API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}