This repository was archived by the owner on Nov 29, 2025. It is now read-only.
Unable to run the Scan #137
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: Claude Agent | |
| on: | |
| issues: | |
| types: [labeled] | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| claude-agent: | |
| if: | | |
| (github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'claude') || | |
| (github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'claude') && contains(github.event.comment.body, '@claude')) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.SWE_AGENT_APP_ID }} | |
| private-key: ${{ secrets.SWE_AGENT_PRIVATE_KEY }} | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install uv | |
| run: pip install uv | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Run Claude Agent | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| github_token: ${{ steps.app-token.outputs.token }} | |
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| trigger_phrase: "@claude" | |
| label_trigger: "claude" | |
| bot_id: "2152368" | |
| bot_name: "caa-swe-agent[bot]" | |
| additional_permissions: | | |
| actions: read | |
| claude_args: | | |
| --max-turns 150 | |
| --model claude-sonnet-4-5-20250929 | |
| --system-prompt "Expert Python developer for Cyber-AutoAgent. Follow PEP 8, use type hints, aim for >80% test coverage. For bugs: write failing test first, then fix. Professional code only - no emojis, minimal try/except, no over-engineering. CRITICAL: After implementing, run full test suite (uv run pytest) to verify no regressions. If frontend impacted, run npm tests. Changes will be pushed to a feature branch with a pre-filled PR creation link provided." | |
| --allowedTools "Read,Write,Edit,MultiEdit,Glob,Grep,LS,Bash(git:*),Bash(gh:*),Bash(uv:*),Bash(pytest:*),Bash(python:*),Bash(npm:*),Bash(node:*),Bash(cat:*),Bash(ls:*),Bash(find:*)" |