Skip to content

sca

Purpose

sca is a one-shot Software Composition Analysis scanner. It scans a local repository path or clones a remote Git URL, detects Maven, npm, Go, and Cargo manifests, and reports known vulnerabilities in the resolved dependencies — without touching ClickHouse or any queue. It’s the direct CLI equivalent of what scascand runs as a queued daemon for repositories connected through the dashboard.

Usage

sca -path <dir> | -url <git-url> [options]
FlagDefaultDescription
-pathPath to a local git repository to scan
-urlURL of a git repository to clone and scan
-cPath to a configuration file
-formattextOutput format: text, json, or sarif
-ostdoutOutput file
-debugfalseEnable debug logging

Exactly one of -path or -url must be given. The scanner exits with status 1 if any vulnerabilities are found (useful in CI), or 0 if the scan completed clean.

Examples

# Scan a local checkout
sca -path /path/to/repo

# Clone and scan a remote repository
sca -url https://github.com/user/repo

# JSON output written to a file, for CI pipelines
sca -path /path/to/repo -format json -o results.json

# SARIF output, for upload to GitHub code scanning
sca -path /path/to/repo -format sarif -o results.sarif