fix: update warden CI auth to use CLAUDE_CODE_OAUTH_TOKEN #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| if: always() | |
| run: | | |
| echo "=== Test claude with ANTHROPIC_API_KEY env ===" | |
| ANTHROPIC_API_KEY="$API_KEY" echo "respond with exactly: hello" | timeout 30 claude --print 2>&1 | head -10 || echo "exit code: $?" | |
| echo "=== Test via symlink path ===" | |
| ANTHROPIC_API_KEY="$API_KEY" echo "respond with exactly: hello" | timeout 30 /.local/bin/claude --print 2>&1 | head -10 || echo "exit code: $?" | |
| echo "=== Warden action env dump ===" | |
| cat /home/runner/work/_actions/getsentry/warden/v0/dist/action/index.js 2>/dev/null | head -5 || echo "no action source" | |
| cat /home/runner/work/_actions/getsentry/warden/v0/action.yml 2>/dev/null || echo "no action.yml" | |
| env: | |
| API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |