Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(ci): fix model selection and fork PR handling in Claude workflows (#991)

Maximilian Roos6b2a7f4203e3
diff --git a/.github/workflows/claude-ci-fix.yaml b/.github/workflows/claude-ci-fix.yaml
index 19d30526a..b3c6fa3d2 100644
--- a/.github/workflows/claude-ci-fix.yaml
+++ b/.github/workflows/claude-ci-fix.yaml
@@ -65,7 +65,6 @@ jobs:
id: claude
uses: anthropics/claude-code-action@v1
with:
- model: opus
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Use bot token so pushed commits trigger CI workflows
github_token: ${{ secrets.WORKTRUNK_BOT_TOKEN }}
@@ -155,7 +154,8 @@ jobs:
Follow the project guidelines in CLAUDE.md.
claude_args: |
- --allowedTools Bash,Edit,Read,Write,Glob,Grep,WebSearch,WebFetch
+ --model opus
+ --allowedTools Bash,Edit,Read,Write,Glob,Grep,WebSearch,WebFetch,Task,Skill
- name: πŸ“‹ Upload Claude Code session logs
if: always()
diff --git a/.github/workflows/claude-mention.yaml b/.github/workflows/claude-mention.yaml
index c5d2fea99..b1a9099eb 100644
--- a/.github/workflows/claude-mention.yaml
+++ b/.github/workflows/claude-mention.yaml
@@ -18,11 +18,17 @@ env:
jobs:
claude:
- # Only run when issue body or comment contains @claude
+ # Only run when body/comment contains @claude AND secrets are available.
+ # Review comments on fork PRs don't receive repository secrets (GitHub
+ # security restriction) so the job skips. Use a regular PR comment on the
+ # Conversation tab to trigger @claude on fork PRs instead.
if: |
- (github.event_name == 'issues' && contains(github.event.issue.body, '@claude')) ||
- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
+ secrets.CLAUDE_CODE_OAUTH_TOKEN != '' &&
+ (
+ (github.event_name == 'issues' && contains(github.event.issue.body, '@claude')) ||
+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
+ )
runs-on: ubuntu-24.04
permissions:
contents: write # Allow pushing commits
@@ -75,7 +81,6 @@ jobs:
id: claude
uses: anthropics/claude-code-action@v1
with:
- model: opus
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# Use bot token so pushed commits trigger CI workflows
github_token: ${{ secrets.WORKTRUNK_BOT_TOKEN }}
@@ -87,7 +92,8 @@ jobs:
# Grant Claude full permissions to execute commands
# Also include system prompt with project context via claude_args
claude_args: |
- --allowedTools Bash,Edit,Read,Write,Glob,Grep,WebSearch,WebFetch
+ --model opus
+ --allowedTools Bash,Edit,Read,Write,Glob,Grep,WebSearch,WebFetch,Task,Skill
--system-prompt "You are helping with the worktrunk project in a GitHub Actions environment.
Follow the project guidelines in CLAUDE.md.
diff --git a/.github/workflows/claude-renovate.yaml b/.github/workflows/claude-renovate.yaml
index fe69c1486..d2cf325ad 100644
--- a/.github/workflows/claude-renovate.yaml
+++ b/.github/workflows/claude-renovate.yaml
@@ -46,7 +46,6 @@ jobs:
id: claude
uses: anthropics/claude-code-action@v1
with:
- model: opus
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.WORKTRUNK_BOT_TOKEN }}
additional_permissions: |
@@ -113,7 +112,8 @@ jobs:
Follow the project guidelines in CLAUDE.md.
claude_args: |
- --allowedTools Bash,Edit,Read,Write,Glob,Grep,WebSearch,WebFetch
+ --model opus
+ --allowedTools Bash,Edit,Read,Write,Glob,Grep,WebSearch,WebFetch,Task,Skill
- name: πŸ“‹ Upload Claude Code session logs
if: always()