Package io.codemodder
Class SarifFindingKeyUtil
java.lang.Object
io.codemodder.SarifFindingKeyUtil
Utility class for building keys for SARIF findings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildFindingId(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
guidproperty, if present. Multiple results across scans are identified by thecorrelationGuidproperty. We prefer to identify the result by itsguidif present, and fall back to thecorrelationGuidif not. We can be reasonably certain that thecorrelationGuidis unique within a singlerun.
-