Skip to content
CI/CD Integration

CI/CD Integration

Integrate netbobr into your CI/CD pipeline to automatically validate firewall rules on every change. The CLI provides machine-readable output formats and meaningful exit codes designed for pipeline gating.

Exit Codes

The CLI returns exit codes based on the maximum severity found across all analyzed flows:

Exit CodeSeverityMeaning
0Low / NoneAll flows are low risk or clean
1MediumAt least one medium-severity finding
2HighAt least one high-severity finding
3CriticalAt least one critical-severity finding

Use --fail-on <severity> to set a custom threshold. For example, --fail-on high treats medium findings as passing (exit 0) and only fails on high or critical.

Output Formats for CI

FormatFlagUse Case
JSON--output jsonMachine parsing, custom integrations
SARIF--output sarifGitHub Code Scanning, VS Code
CSV--output csvSpreadsheet import, data analysis
Table--output tableHuman-readable logs
PDF--output pdfCompliance reports, change tickets

Platform Guides