Skip to content

Tutorials

Walk-throughs on real open-source repositories, each built around one job sarifix does. Every command was run for these pages, and every block of output is what it printed. Long output is trimmed where you see ....

Before you start

Install sarifix (see Getting started) and the scanners each tutorial uses. These pages were written with:

Tool Version Used in
Trivy 0.76.1 infrastructure, pull requests, org policy
Checkov 3.3.30 infrastructure, pull requests, org policy
golangci-lint 2.15.0 release history
Hadolint 2.15.1 custom scanner
Python 3.13 custom scanner
jq any reading reports

Other versions work. Their rules and counts will differ from the output shown here.

What these tutorials cover

sarifix doesn't run a fixing agent itself yet: the local, pr and review modes arrive in later phases. Claude fixes findings today through the Stop hook and through issues mode. These tutorials cover everything that runs today, namely scanning, fingerprints and diffs, the policy, batching, and the report and issues modes. Those decide what a fix run will do once fixing lands.

Each tutorial writes scan output into the repository (sarif/, sarifix-report/). In a repository of your own, add both to .gitignore: SARIF files are regenerated on every run and never committed. See Where SARIF files live.