Skip to main content

Assurance gate

The assurance command checks out a repository, runs static analysis, and performs the applicable dynamic stage. Use its combined verdict as a CI gate. A Critical or High finding disqualifies the run, but does not skip later scans.

threatlint assure run --repo https://github.com/acme/web.git --branch main

Requirementsโ€‹

Run only against applications you are authorized to test. Install Semgrep Community Edition on PATH. The default web/API environment requires Docker and builds and executes the target in a bounded internal network with no external route, resource limits, and no host mounts.

The initial checkout is saved as repo/ inside the assurance run directory. Use --work /path/to/run-directory to choose that location; the optional repoStore setting does not select this initial assurance checkout. See Runtime red team for the runtime workflow.

Read the resultโ€‹

The run directory contains assurance-report.md and assurance-state.json.

VerdictMeaningExit code
QUALIFIEDEvery stage ran and none tripped the gate0
DISQUALIFIEDAll scans ran, with a Critical or High finding in at least one stage1
ERRORA stage could not produce a verdict, such as when Semgrep is unavailable1

The report lists findings from every stage and identifies the first disqualifying stage. Read stage coverage and limitations alongside the verdict.

Vendor submissionsโ€‹

Invicti and NowSecure submissions are stubbed by default: the report records the proposed submission without contacting either vendor. A real integration must register the appropriate provider hook. Findings returned by a registered provider participate in the gate.

For extension code, see the assurance providers in the repository.