Neptune

neptune gate

CI/CD vulnerability gate — fail on new critical or high vulnerabilities

neptune gate

Compares a current analysis result against a baseline and exits with code 1 if new critical or high vulnerabilities exceed the configured thresholds. Designed for CI/CD pipelines.

Usage

neptune gate <BASELINE> <CURRENT> [OPTIONS]

Arguments

ArgumentDescription
<BASELINE>Path to the baseline neptune-analysis.json
<CURRENT>Path to the current neptune-analysis.json

Options

FlagDefaultDescription
--max-new-critical <N>0Maximum number of new CRITICAL vulnerabilities allowed
--max-new-high <N>unlimitedMaximum number of new HIGH vulnerabilities allowed
--jsonOutput result as JSON

Examples

# Fail on any new critical vulnerabilities
neptune gate baseline.json current.json

# Allow up to 2 new high vulns
neptune gate baseline.json current.json --max-new-high 2

# JSON output for CI
neptune gate baseline.json current.json --json

On this page