Skip to content

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

feat(ci): use OAuth token for Claude Code subscription auth (#494)

Maximilian Roos6c54a8eee685
diff --git a/.github/workflows/claude-ci-fix.yaml b/.github/workflows/claude-ci-fix.yaml
index 61f84b4e5..d368a255d 100644
--- a/.github/workflows/claude-ci-fix.yaml
+++ b/.github/workflows/claude-ci-fix.yaml
@@ -63,8 +63,9 @@ jobs:
- name: 🤖 Run Claude Code to fix CI
id: claude
uses: anthropics/claude-code-action@v1
+ env:
+ CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
with:
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Use bot token so pushed commits trigger CI workflows
github_token: ${{ secrets.WORKTRUNK_BOT_TOKEN }}
additional_permissions: |
diff --git a/.github/workflows/claude-mention.yaml b/.github/workflows/claude-mention.yaml
index 72fdb696b..465f3e7c9 100644
--- a/.github/workflows/claude-mention.yaml
+++ b/.github/workflows/claude-mention.yaml
@@ -68,8 +68,9 @@ jobs:
- name: 🤖 Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
+ env:
+ CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
with:
- anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# Use bot token so pushed commits trigger CI workflows
github_token: ${{ secrets.WORKTRUNK_BOT_TOKEN }}