Install and use TorchSight from the terminal.
INSTALL
Quick install (macOS / Linux)
curl -sSL https://torchsight.io/install.sh | sh
From source
git clone https://github.com/IvanDobrovolsky/torchsight
cd torchsight && make install USAGE
terminal
# scan a directory
$ torchsight /path/to/files
# interactive REPL
$ torchsight
# output formats: json, sarif, markdown, html
$ torchsight /path --format sarif
# CI mode — exit 1 if findings at or above severity
$ torchsight /path --fail-on high
# scan changed files since a git ref
$ torchsight --diff HEAD~3
# pipe mode
$ cat file.txt | torchsight --stdin SUPPORTED FILE TYPES
PDFDOCXXLSXPPTXDOCCSVEMLPSTPNGJPGTIFFTXTJSONYAMLXML