From 39573c8cab60aff7069bda13d9c618ebce847622 Mon Sep 17 00:00:00 2001 From: Mohsen Azimi <543633+mohsen1@users.noreply.github.com> Date: Tue, 27 Oct 2026 01:56:46 +0100 Subject: [PATCH] feat: export credential_exposure code findings to SARIF The code reviewer now investigates credential exposure as a model category (code-categories-v2) instead of matching committed secrets. Recorded committed_secret findings stay in review history, so the catalog keeps that domain for them. --- src/sarif.rs | 7 +++++-- tests/fixtures/risk-domains.json | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sarif.rs b/src/sarif.rs index d592be6..b3c39ee 100644 --- a/src/sarif.rs +++ b/src/sarif.rs @@ -32,14 +32,17 @@ const DOMAINS: [&str; 18] = [ "observability", "source_coverage", ]; -// code-categories-v1 and the four deterministic CODE diff rule categories. -const CODE_DOMAINS: [&str; 10] = [ +// code-categories-v2, the three deterministic CODE diff rule categories, and +// committed_secret, which the reviewer no longer produces but recorded +// findings keep. +const CODE_DOMAINS: [&str; 11] = [ "logic", "edge_case", "error_handling", "state_transition", "concurrency", "resource_lifecycle", + "credential_exposure", "test_marker", "removed_assertion", "debug_residue", diff --git a/tests/fixtures/risk-domains.json b/tests/fixtures/risk-domains.json index 7f485b8..a93b1c4 100644 --- a/tests/fixtures/risk-domains.json +++ b/tests/fixtures/risk-domains.json @@ -6,6 +6,7 @@ "state_transition", "concurrency", "resource_lifecycle", + "credential_exposure", "test_marker", "removed_assertion", "debug_residue",