Skip to content

Merge pull request #493 from kimocoder/copilot/update-github-actions-… #75

Merge pull request #493 from kimocoder/copilot/update-github-actions-…

Merge pull request #493 from kimocoder/copilot/update-github-actions-… #75

Workflow file for this run

name: Claude Code

Check failure on line 1 in .github/workflows/claude.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/claude.yml

Invalid workflow file

(Line: 11, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.ANTHROPIC_API_KEY != null && vars.CLAUDE_CODE_ENABLED != 'false'
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
claude:
if: ${{ secrets.ANTHROPIC_API_KEY != null && vars.CLAUDE_CODE_ENABLED != 'false' }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout repo
uses: actions/checkout@v6.0.2
- name: Run Claude Code Action
uses: anthropics/claude-code-action@v1
continue-on-error: true
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# What Claude should do
prompt: |
You are an expert security researcher reviewing changes to wifite2 (a Python WiFi auditing tool).
Review this pull request or comment for:
- bugs
- security issues
- code quality problems
- performance improvements
Focus especially on Python code. Be concise but thorough. If you can fix something, do it.
claude_args: |
--max-turns 8
# Optional but very useful
trigger_phrase: "@claude"
use_sticky_comment: true
include_fix_links: true
track_progress: true