Files
loki/scripts
92a1f8a55b fix(infra): gate deploys on the repo's own workflows, not everything that reports on the commit (#149)
solon and reparaturbonus-zh both refused to deploy commits whose verify
was green, because Dependabot's dependency-graph updater had failed on the
same SHA and the gate counted it as CI. A failed dependency update is not
a statement about whether the code works.

Filtering by app slug does not separate them — Dependabot runs under
github-actions too. The discriminator is the workflow path: real CI lives
in .github/workflows/, Dependabot's updater reports as
dynamic/dependabot/dependabot-updates. So count workflow runs, filtered to
repo workflows, instead of every check run on the commit. Third-party
check apps (Snyk) that sit pending forever stop deadlocking the gate too.

Self-exclusion moves from check_suite_id to the run id, which is what the
workflow-runs API keys on.

Verified against solon's blocked SHA: CI FAILED (3) -> CI green (1).

Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-03 10:39:25 +02:00
..