Reports
Findings can be exported in multiple formats. All formats contain the same data, just rendered differently.
Formats
Table (Default)
Human-readable terminal output using tabled.
bash
netinject scan --target https://api.example.com
netinject report <session-id> --format tableColumns: Severity, Source, Title, URL
JSONL
One JSON object per line. Useful for piping to jq or other tools.
bash
netinject scan --target https://api.example.com --output jsonl
netinject report <session-id> --format jsonlEach line is a complete Finding object.
JSON
Pretty-printed JSON array.
bash
netinject report <session-id> --format jsonMarkdown
Structured markdown report with severity grouping.
bash
netinject report <session-id> --format markdownSections: Summary by severity, then detailed findings grouped by severity (Critical first).
SARIF
Static Analysis Results Interchange Format. For CI/CD integration with GitHub Code Scanning, Azure DevOps, etc.
bash
netinject report <session-id> --format sarifFollows the SARIF v2.1.0 specification. Rules are keyed by adapter name and category.
Output Destination
bash
# Stdout (default)
netinject report <session-id> --format json
# File
netinject report <session-id> --format sarif --output-file results.sarifCI/CD Integration
The SARIF format integrates with GitHub Advanced Security:
yaml
- name: Run API security scan
run: netinject run --target $API_URL --session ci-scan
- name: Upload SARIF results
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif