Skip to content

feat: clean CLI output with SARIF and gate thresholds#137

Merged
JBAhire merged 5 commits into
mainfrom
v2/clean-cli-output
Apr 4, 2026
Merged

feat: clean CLI output with SARIF and gate thresholds#137
JBAhire merged 5 commits into
mainfrom
v2/clean-cli-output

Conversation

@JBAhire
Copy link
Copy Markdown
Contributor

@JBAhire JBAhire commented Apr 3, 2026

Summary

  • Add inline remediation (Fix:) and standards mapping (Standards:) to every terminal finding
  • Restore domain score breakdown (12 domains with visual bars) and security/hardening split scores
  • Keep SARIF 2.1.0 output on scan, test, and gate (--sarif)
  • Restore gate thresholds: --min-score, --min-grade, --no-critical, --no-high
  • Add --forensics and --browser to endpoint scanning
  • Remove HTML, compliance-html, and CycloneDX reporters (available via Guard0 Platform)
  • Export reportSarif from SDK
  • CTA only on scan output, not gate/endpoint

Depends on

Test plan

  • g0 scan output shows Fix: and Standards: on findings
  • g0 scan output shows Domain Scores section
  • g0 scan --sarif produces valid SARIF 2.1.0
  • g0 gate --min-score 90 fails on fixture (score 84)
  • g0 gate --min-score 50 passes
  • g0 gate --min-grade A fails
  • g0 endpoint --help shows --forensics, --browser
  • npm run build succeeds

Base automatically changed from v2/offline-first to main April 3, 2026 06:34
Every finding now shows inline remediation (Fix:) and standards mapping
(Standards: OWASP, NIST, ISO). Terminal output includes domain score
breakdown and security/hardening split scores.

- Add remediation and standards to terminal findings
- Restore domain score breakdown in terminal output
- Keep SARIF 2.1.0 output on scan, test, and gate
- Restore gate thresholds (--min-score, --min-grade, --no-critical)
- Remove HTML and compliance reporters (available via Guard0 Platform)
- Remove CycloneDX reporter
- Add --forensics and --browser to endpoint scanning
- Export reportSarif from SDK
@JBAhire JBAhire force-pushed the v2/clean-cli-output branch from 3f87093 to 6149025 Compare April 3, 2026 06:38
@JBAhire JBAhire merged commit cc377b3 into main Apr 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant