From 4dc504b39700b0e66afe5ea067928e95d230a3f0 Mon Sep 17 00:00:00 2001 From: Dhravya Shah <63950637+Dhravya@users.noreply.github.com> Date: Fri, 18 Sep 2026 02:15:29 +0000 Subject: [PATCH] fix(ci): skip bot-triggered runs in Auto Fix CI Failures Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com> --- .github/workflows/claude-auto-fix-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-auto-fix-ci.yml b/.github/workflows/claude-auto-fix-ci.yml index bb1849a0..df949a44 100644 --- a/.github/workflows/claude-auto-fix-ci.yml +++ b/.github/workflows/claude-auto-fix-ci.yml @@ -15,9 +15,14 @@ permissions: jobs: auto-fix: + # claude-code-action refuses non-human actors unless `allowed_bots` is set, so a + # bot-triggered run (for example a Polylane autofix branch) fails at the Claude + # step even though the job cannot do its work. Skip those runs, matching the + # human-only gating in claude.yml, instead of reporting them as CI failures. if: | github.event.workflow_run.conclusion == 'failure' && - github.event.workflow_run.pull_requests[0] + github.event.workflow_run.pull_requests[0] && + !endsWith(github.event.workflow_run.actor.login, '[bot]') runs-on: ubuntu-latest timeout-minutes: 30 steps: