Skip to main content

vulkro baseline

Run a scan and write a baseline JSON file (default .vulkro-baseline.json) that scan --baseline and scan --ratchet can compare against. The baseline is an array of finding records; it captures the current state so future scans can gate on new findings only.

Usage

vulkro baseline [PATH] -o .vulkro-baseline.json
ArgumentDescriptionDefault
PATHPath to the project root..

Flags

FlagDescription
--out, -o <PATH>Output file. Defaults to .vulkro-baseline.json in the repo root.
--no-cacheBypass the per-file extraction cache (same as scan --no-cache).

Examples

# Write the baseline once, then commit it.
vulkro baseline . -o .vulkro-baseline.json
git add .vulkro-baseline.json

# Later scans exit 1 only on findings new vs the baseline.
vulkro scan . --ratchet