From 09c7baae5722cff776770af816e32cb025ca7d37 Mon Sep 17 00:00:00 2001 From: DJ Date: Tue, 31 Mar 2026 20:12:18 -0700 Subject: [PATCH 1/2] ci: move Dependabot exclusion to step-level in Claude workflow Move the dependabot[bot] check from job-level `if` to step-level `if` so the claude job runs and reports SUCCESS (with a skipped step) instead of being skipped entirely. A skipped job doesn't satisfy required status checks in branch protection, but a successful job with a skipped step does. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/claude.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 446e83e7..25e71e4d 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -15,8 +15,7 @@ jobs: claude: if: >- (github.event_name == 'pull_request' && - github.event.pull_request.head.repo.full_name == github.repository && - github.event.pull_request.user.login != 'dependabot[bot]') || + github.event.pull_request.head.repo.full_name == github.repository) || (github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@claude') && contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) || @@ -32,6 +31,7 @@ jobs: issues: write steps: - name: Run Claude Code + if: github.event.pull_request.user.login != 'dependabot[bot]' uses: anthropics/claude-code-action@bee87b3258c251f9279e5371b0cc3660f37f3f77 # v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} From dc7544e1e9e5d30601ba9a5c9dce9fe878a08396 Mon Sep 17 00:00:00 2001 From: DJ Date: Tue, 31 Mar 2026 20:17:35 -0700 Subject: [PATCH 2/2] ci: guard step-level Dependabot check for pull_request events only The step-level if needs to handle issue_comment and pull_request_review_comment events where github.event.pull_request is not present. Use event_name guard to avoid null dereference. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/claude.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 25e71e4d..d44d9222 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -31,7 +31,7 @@ jobs: issues: write steps: - name: Run Claude Code - if: github.event.pull_request.user.login != 'dependabot[bot]' + if: github.event_name != 'pull_request' || github.event.pull_request.user.login != 'dependabot[bot]' uses: anthropics/claude-code-action@bee87b3258c251f9279e5371b0cc3660f37f3f77 # v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}