Package io.codemodder
Class SarifFindingKeyUtil
java.lang.Object
io.codemodder.SarifFindingKeyUtil
Utility class for building keys for SARIF findings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildFindingId
(com.contrastsecurity.sarif.Result result) Builds a finding ID for a SARIF finding based on the provided result.
-
Method Details
-
buildFindingId
Builds a finding ID for a SARIF finding based on the provided result.Individual results are identified by the
guid
property, if present. Multiple results across scans are identified by thecorrelationGuid
property. We prefer to identify the result by itsguid
if present, and fall back to thecorrelationGuid
if not. We can be reasonably certain that thecorrelationGuid
is unique within a singlerun
.
-