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",