Skip to content

Commit 7e11f18

Browse files
nanasessclaude
andcommitted
ci: Dependabot PR では claude-review をスキップ
Dependabot がワークフローファイル(claude-code-review.yml の checkout SHA 等)を 更新する PR では、claude-code-action の OIDC トークン交換が 「Workflow validation failed」(401) で必ず失敗する。これは PR ブランチの ワークフロー内容がデフォルトブランチと一致しないことによる仕様上の挙動で、 回避不能なため `if: github.actor != 'dependabot[bot]'` でスキップする。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0e4ebdb commit 7e11f18

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ on:
1212

1313
jobs:
1414
claude-review:
15+
# Skip on Dependabot PRs: such PRs may modify this workflow file (e.g. bumping
16+
# the actions/checkout SHA), which makes claude-code-action's OIDC token exchange
17+
# fail with "Workflow validation failed" because the workflow no longer matches the
18+
# version on the default branch. Skipping avoids that expected, unavoidable failure.
19+
if: github.actor != 'dependabot[bot]'
20+
1521
# Optional: Filter by PR author
1622
# if: |
1723
# github.event.pull_request.user.login == 'external-contributor' ||

0 commit comments

Comments
 (0)