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: