Skip to content

Severity Gates

A severity gate makes the CLI exit non-zero when findings at or above a chosen level are present, failing your CI build. Three places can set it.

Open Projects → (your project) → Settings → Scanning & AI Overrides and pick a level under Fail CI/CD build on severity. The CLI picks it up automatically — pipelines stay simple.

Terminal window
vygl scan . # Picks up the project setting

Set scan.fail_on in your repo’s config file. Useful for repos that should always have a stricter gate than the project default.

scan:
fail_on: high

A local --fail-on flag wins over both, so individual developers can tighten the gate temporarily:

Terminal window
vygl scan --fail-on critical .
LevelMeaning
criticalFail only on critical findings (most permissive)
highFail on critical or high
mediumFail on critical, high, or medium
lowFail on any finding (most strict)

When no gate is set, the CLI exits 0 regardless of findings — useful for dashboard-only “Monitor” mode.

When multiple sources are set, Vygl picks the value in this order:

  1. CLI --fail-on flag
  2. .vygl.yml scan.fail_on
  3. Project setting in the dashboard
  4. No gate (exit 0)

When the gate triggers:

  • The CLI prints a summary table of triggering findings.
  • The process exits with code 1 (CI build fails).
  • Findings are still uploaded — your dashboard reflects the scan whether or not the gate fired.