Compliance Audit
nfr-review maps 85 rules to four compliance frameworks: SOC 2, ISO 27001, PCI DSS, and NIST 800-53. This recipe walks through running a compliance audit end to end.
Step 1: Run a compliance-filtered scan
Section titled “Step 1: Run a compliance-filtered scan”Filter output to your target framework:
nfr-review report ./my-repo \ --compliance soc2 \ --format markdown \ --output-dir ./audit-resultsOnly findings mapped to SOC 2 controls appear in the output. Non-compliance findings are excluded.
Step 2: Review the report
Section titled “Step 2: Review the report”The compliance-filtered report shows:
- Passing controls (green findings) — evidence of compliance
- Warnings (amber findings) — areas needing improvement
- Violations (red findings) — gaps that need remediation
Step 3: Export evidence
Section titled “Step 3: Export evidence”Generate SARIF for integration with compliance tooling:
nfr-review report ./my-repo \ --compliance soc2 \ --format sarif \ --output-dir ./audit-evidenceSARIF includes compliance context in the properties field of each result.
For spreadsheet-based audit tracking:
nfr-review report ./my-repo \ --compliance soc2 \ --format csv \ --output-dir ./audit-evidenceStep 4: Track remediation
Section titled “Step 4: Track remediation”Use GitHub issues to track remediation of compliance gaps:
nfr-review report ./my-repo \ --compliance soc2 \ --create-issues \ --rag-min amber \ --extra-labels "compliance:soc2,audit:2026-Q2"Each gap becomes a tracked issue with severity, evidence, and remediation guidance.
Step 5: Demonstrate improvement
Section titled “Step 5: Demonstrate improvement”Run the scan again after remediation to show progress:
nfr-review report ./my-repo \ --compliance soc2 \ --baseline ./audit-results/report.jsonlThe baseline diff highlights which gaps were closed since the last audit.
Multiple frameworks
Section titled “Multiple frameworks”Audit against multiple frameworks simultaneously:
nfr-review report ./my-repo \ --compliance soc2,pci-dss \ --format markdownNightly compliance monitoring
Section titled “Nightly compliance monitoring”Set up a nightly workflow to continuously monitor compliance:
- name: Compliance scan uses: JimAKennedy/nfr-review@v1 with: path: . compliance: "soc2" create-issues: "true" rag-min: "amber" fail-on: "never"This catches compliance regressions as they’re introduced, rather than discovering them during periodic audits.
Framework coverage
Section titled “Framework coverage”See the Compliance Matrix reference for the complete list of mapped rules and frameworks.