name: Issue Triage
on:
  issues:
    types: [opened]
jobs:
  triage:
    environment: ai-bots
    runs-on: ubuntu-latest
    permissions:
      issues: write
      id-token: write
      contents: read
    steps:
      - uses: actions/checkout@v4
      - uses: anthropics/claude-code-base-action@beta
        with:
          #   anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
          claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
          prompt_file: .github/prompts/triage.md
          model: claude-opus-4-5-20251101
          allowed_tools: "Bash(gh issue:*),Bash(gh search:*)"
