Skip to main content

Overview

corgea deps builds an offline dependency inventory from npm, Python, and Java manifests and lockfiles. It can inspect dependency graphs, explain why a package is present, compare dependency changes, generate a CycloneDX SBOM, and evaluate dependency policy. corgea deps does not require a Corgea account, token, or network access.

Inventory

Run an offline dependency scan from the project root:
Common commands:
Use --format human, agent, json, or quiet to control terminal output for scan, graph, explain, diff, and policy init. In detected agent environments, corgea deps defaults to the compact agent format; pass --format human to force normal terminal output. For corgea deps scan, use --out-format table, json, or sarif with optional --out-file when exporting a report. Do not combine --format and --out-format on the same deps scan command.

Policy

Initialize .corgea/deps.yml:
The generated policy controls whether lockfiles are required, missing or stale lockfiles fail, and direct dependencies using wildcards, latest, or semver ranges are reported.

CI Integration

Copy this workflow into .github/workflows/dependencies.yml.
To fail only when a pull request adds new high-severity dependency findings:

Reference

Commands

Formats

Exit Codes

Severity Values

--fail-on and --fail-on-new accept info, low, medium, high, or critical.

Troubleshooting

Format Conflict

deps scan rejects commands that combine --format with --out-format.
Use --format for terminal rendering and --out-format for exported scan reports.

Package Not Found

deps explain exits with code 2 when the package is not present in the scanned dependency graph.