Skip to content

Tool output ​

When a playbook runs a security or analysis tool, prefer that tool’s JSON (or JSON Lines) stdout over its default human-readable text whenever the tool supports it.

Satori’s findings parser reads tool stdout after the run. Structured JSON becomes triageable issues with source TOOL. Plain text usually cannot — you still get assert pass/fail, but no parsed tool hits.

Rule ​

  1. If the tool has a JSON / JSONL / structured-report flag, use it.
  2. Keep install and setup commands separate from the scan command so install logs do not mix into the scan stdout.
  3. Use asserts for pass/fail checks; rely on JSON stdout for finding extraction.

Preferred invocations ​

These match the formats Satori’s dedicated parsers recognize:

ToolPrefer
semgrepsemgrep --json …
banditbandit -f json …
gosecgosec -fmt=json …
eslinteslint -f json …
pyspectorpyspector scan -f json … (or --format json)
ruffruff check --output-format=json …
basedpyright / pyrightbasedpyright --outputjson …
checkovcheckov -o json …
gitleaksgitleaks … --report-format json
trufflehogtrufflehog … --json
trivytrivy … --format json
nucleinuclei … -jsonl

Example:

yml
settings:
  name: Semgrep secrets scan

install:
- pip install semgrep

semgrep:
- semgrep --config 'p/secrets' --json .

Without --json, the same scan may finish successfully but produce no TOOL findings.

Other tools ​

Tools without a dedicated parser can still yield findings when their stdout is JSON or JSON Lines — Satori’s dynamic fallback extracts records from recognizable shapes (for example shellcheck, hadolint, grype, npm audit). Prefer each tool’s JSON flag so that fallback can run.

If a tool only emits text, use asserts on stdout/stderr; do not expect TOOL issues from that command.


If you need any help, please reach out to us on Discord or via Email