githits-scan command finds lockfiles and manifests in your repository and sends them to GitHits for analysis.
You can run Scan from a terminal or CI. Install it separately from the githits CLI and MCP server.
Start with a local preview
Install Scan, then run this command from the repository you want to scan:detect shows which package files Scan would upload. It reads those files locally and makes no API request. You don’t need a token for this step.
Review the selection and the file contents before continuing. Then set your API token and choose the report you need:
The default SBOM format is CycloneDX 1.7 JSON. You can also choose SPDX 2.3 tag-value or a text inventory.
An audit checks vulnerabilities, deprecated releases, outdated and duplicate versions, and manifest/lockfile disagreements. A license report is informational. To enforce a policy with
license check, configure the licenses you allow first.
GitHits parses the uploaded files and resolves dependencies. Scan checks upload limits and writes the returned reports. Use the command reference for output formats, flags, and exit codes.
Review what you upload
Upload commands send the full contents of selected lockfiles and manifests, with paths relative to the scan root. Package files can contain private package names, registry URLs, and other sensitive values. Scan does not redact their contents. Review bothdetect and the selected files before uploading.
The detect preview prepares the same files as upload commands, including eligible Cargo and npm workspace member manifests. Scan does not upload source files outside its supported package files, Git history, or githits-scan.toml. It has no telemetry or analytics reporting.
You can also work with saved reports without a token or network connection: audit --from-analysis, license report --from-report, and license check --sbom. Reports can reveal dependency names and paths. Review them before sharing.
Read the Privacy Policy and Terms of Service for how GitHits processes submitted data.