5353 github.event_name == 'issue_comment' &&
5454 (
5555 github.event.sender.login == github.repository_owner ||
56+ github.event.sender.login == 'github-actions[bot]' ||
5657 contains(fromJSON('["COLLABORATOR", "MEMBER", "OWNER"]'), github.event.comment.author_association)
5758 ) &&
5859 contains(github.event.comment.body, '@claude')
@@ -373,17 +374,6 @@ jobs:
373374 echo "Has Linked PR: ${{ steps.context-info.outputs.has-linked-pr }}"
374375 echo "=================================="
375376
376- # Check for secrets
377- if [ -z "${{ secrets.CLAUDE_CREDS_API_KEY }}" ]; then
378- echo "::error::CLAUDE_CREDS_API_KEY is not set"
379- exit 1
380- fi
381-
382- if [ -z "${{ secrets.CLAUDE_CREDS_API }}" ]; then
383- echo "::error::CLAUDE_CREDS_API is not set"
384- exit 1
385- fi
386-
387377 echo "✅ Environment validation complete"
388378
389379 - name : Exit early if Issue already has linked PR
@@ -497,9 +487,12 @@ jobs:
497487 elif echo "$TRIGGER_TEXT" | grep -qi '\bhaiku\b'; then
498488 echo "⚡ Haiku model requested"
499489 echo "model=haiku" >> $GITHUB_OUTPUT
500- else
490+ elif echo "$TRIGGER_TEXT" | grep -qi '\bsonnet\b'; then
501491 echo "🎵 Using default Sonnet model"
502492 echo "model=sonnet" >> $GITHUB_OUTPUT
493+ else
494+ echo "🧠 Using default Opus model"
495+ echo "model=opus" >> $GITHUB_OUTPUT
503496 fi
504497
505498 - name : Fetch Base Branch (PR only)
@@ -566,23 +559,6 @@ jobs:
566559
567560 echo "📊 Project summary: $framework ($total_files files)"
568561
569- # Old claude code action to fetch tokens
570- # - name: Setup Env
571- # id: setup-env
572- # uses: DavidWells/actions/get-claude-tokens@master
573- # with:
574- # api-key: ${{ secrets.CLAUDE_CREDS_API_KEY }}
575- # api-endpoint: ${{ secrets.CLAUDE_CREDS_API }}
576-
577- # - name: Run Claude PR Action
578- # uses: davidwells/claude-code-action@main
579- # with:
580- # use_oauth: true
581- # claude_access_token: ${{ steps.setup-env.outputs.access-token }}
582- # claude_refresh_token: ${{ steps.setup-env.outputs.refresh-token }}
583- # claude_expires_at: ${{ steps.setup-env.outputs.expires-at }}
584- # model: ${{ steps.setup-env.outputs.model || 'claude-sonnet-4-20250514' }}
585- # allowed_tools: ${{ steps.setup-env.outputs.allowed_tools || 'Bash,Edit,Read,Write,Glob,Grep,LS,MultiEdit,NotebookRead,NotebookEdit' }}
586562 # timeout_minutes: "60"
587563
588564 - name : Run Claude Code
@@ -592,7 +568,7 @@ jobs:
592568 continue-on-error : true
593569 with :
594570 claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
595- github_token : ${{ secrets.GITHUB_TOKEN }}
571+ github_token : ${{ secrets.GH_PAT || secrets. GITHUB_TOKEN || github.token }}
596572 # GITHUB ACTIONS (Maximum Freedom):
597573 settings : |
598574 {
0 commit comments