From 25eeeb4d7ff01b04955e80b75917744cdc0493be Mon Sep 17 00:00:00 2001 From: DJ Date: Tue, 31 Mar 2026 20:12:13 -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 d41aa94a..33f3b33d 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@094bd24d575e7b30ac1576024817bf1a97c81262 # v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} From 2a393282f74b126cfd840a8f9dd87725ea46298d Mon Sep 17 00:00:00 2001 From: DJ Date: Tue, 31 Mar 2026 20:17:33 -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 33f3b33d..28485099 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@094bd24d575e7b30ac1576024817bf1a97c81262 # v1 with: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}