Skip to content

Carry each detector's finding kinds in the JSON report - #5

Merged
devGregA merged 1 commit into
mainfrom
devgrega/report-kinds
Nov 3, 2026
Merged

devGregA merged 1 commit into
mainfrom
devgrega/report-kinds

Conversation

@devGregA

@devGregA devGregA commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

What

report.detectors[] in --format json output gains kinds: each kind's id, title, SARIF level and CVSS-style severity (when it has one), taken from the manifest.

Why

Importers such as DefectDojo's parser rank findings by kind. Without this they need their own copy of every detector's scores, which goes stale with each new detector or kind.

Checks

  • go vet ./... and go test ./... pass, plus -race on internal packages and the catalog contract test.
  • New TestJSONCarriesKinds covers a kind with and without a score.

🤖 Generated with Claude Code

report.detectors now lists every kind with its title, SARIF level and
CVSS-style score, so an importer can rank a finding by its kind without
keeping its own table that goes stale with each new detector.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devGregA
devGregA merged commit 53fc956 into main Nov 3, 2026
2 checks passed
@devGregA
devGregA deleted the devgrega/report-kinds branch November 3, 2026 05:21
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