How-to guides/Controlling output

Controlling output

Edit on GitHub ↗

Choose the results format and keep terminal output quiet.

After a run, Privateer writes a log file and a results file for each target; the output schema has the exact paths. The configuration reference lists every setting that affects output. If no files appear, see No output files.

Controlling the output format

The format of the results file is set in your config:

output: json

This writes my-github-repo.json in place of my-github-repo.yaml. The CLI reference lists every format and the file each one writes; pvtr run -o <format> overrides the config for one run. SARIF output is compatible with the GitHub Security tab, see SARIF upload for the GitHub Security tab for how to upload it.

Suppressing terminal output

To suppress all non-essential log output to the terminal without changing your log level setting, use the --silent flag at runtime:

pvtr run -c config.yml --silent

This is useful in CI environments where you want clean pipeline output but still want full results written to disk.