Neptune

neptune policy

Evaluate a security policy against analysis results

neptune policy

Evaluates a policy file (TOML or JSON) against a Neptune analysis result. Returns pass/fail with deny and warn counts. Exits with code 1 on failure — useful for CI/CD gates.

Usage

neptune policy <POLICY_FILE> <RESULT_FILE> [OPTIONS]

Arguments

ArgumentDescription
<POLICY_FILE>Path to the policy file (TOML or JSON)
<RESULT_FILE>Path to the analysis result JSON file

Options

FlagDescription
--jsonOutput as JSON instead of human-readable

Examples

neptune policy security-policy.toml analysis-result.json
neptune policy policy.json result.json --json

Exit codes

CodeMeaning
0Policy passed
1Policy failed (deny rules triggered)

On this page