Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ on:

jobs:
claude-review:
# Optional: Filter by PR author
# if: |
# github.event.pull_request.user.login == 'external-contributor' ||
# github.event.pull_request.user.login == 'new-developer' ||
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'

# Skip on bot-authored PRs (Copilot, Dependabot). claude-code-action
# exchanges the workflow's OIDC token for a GitHub App installation
# token; the server-side exchange rejects actors without repo write
# access. The action's allowed_bots input would normally fix this,
# but v1.0.88 has a client-side bug that crashes on actors without
# the "[bot]" suffix (Copilot's login is "Copilot"). Tracked in
# anthropics/claude-code-action#1133; fix PRs #1144/#1213 unmerged.
# Remove this guard once the pin is lifted and allowed_bots works.
if: >-
github.event.pull_request.user.login != 'Copilot' &&
github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -33,7 +38,11 @@ jobs:

- name: Run Claude Code Review
id: claude-review
uses: anthropics/claude-code-action@v1
# Pinned to v1.0.88 to avoid the ENOENT symlink / tsconfig.json
# "directory mismatch" regression introduced in v1.0.89.
# See upstream issues anthropics/claude-code-action#1187,
# #1205, and #1220. Revisit once a fix ships upstream.
uses: anthropics/claude-code-action@1eddb334cfa79fdb21ecbe2180ca1a016e8e7d47 # v1.0.88
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ jobs:

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
# Pinned to v1.0.88 to avoid the ENOENT symlink / tsconfig.json
# "directory mismatch" regression introduced in v1.0.89.
# See upstream issues anthropics/claude-code-action#1187,
# #1205, and #1220. Revisit once a fix ships upstream.
uses: anthropics/claude-code-action@1eddb334cfa79fdb21ecbe2180ca1a016e8e7d47 # v1.0.88
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}

Expand Down
Loading