BarkleyGitHub
Controls · GATE
Markdown file

Checks that block

A failing check only stops code from reaching main when main requires that check to pass. Otherwise it’s a warning, and the code can still be merged.

From the 2026 sweepOf the 909 apps that run a security check, 86 (9.5%) require one that blocks on what it finds. Another 35 require a scan to run but not to pass, because CodeQL's analysis job passes whatever it finds. The Marketplace report has more on this.

Controls

  1. GATE-1Level 2 (or a required check)Level markerFor CodeQL, require code scanning results. In your main branch ruleset, turn on Require code scanning results, add CodeQL, and set it to block on security alerts of "High or higher". Requiring "Analyze (python)" only proves the scan ran.

  2. GATE-2Level 2 (or code scanning)Level markerRequire your other checks by job name. Require status checks to pass → add dependency-review, pip-audit, ruff-security, hassfest and marketplace from the workflows in Checks in CI. A check only shows up in the list after it has run once.

  3. GATE-3Level 2Level markerMake sure each check can fail. Remove continue-on-error: true, || true and --exit-zero from security steps. Some tools report without failing unless you ask them to. Trivy, for example, needs exit-code: 1.

  4. GATE-4Level 2Level markerWork through pull requests, even alone. Push to a branch, open a pull request and merge it when the checks are green. It takes a minute longer and it's the only way the required checks see your code first.

Check it worked

Open a pull request with a failing check. The merge button should be blocked and say which required check failed.

Barkley doesn't check this yet.

Open the full page