ScanResultToSarifConverter

io.shiftleft.semanticcpg.sarif.ScanResultToSarifConverter

A component that converts a CPG finding to some version of SARIF.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

Given a finding, will extract any rule data and create a SARIF ReportingDescriptor

Given a finding, will extract any rule data and create a SARIF ReportingDescriptor

Value parameters

finding

the finding to convert.

Attributes

Returns

a SARIF compliant reporting descriptor object if possible.

def convertFindingToResult(finding: Finding): Result

Given a finding, will convert it to the SARIF specified result.

Given a finding, will convert it to the SARIF specified result.

Value parameters

finding

the finding to convert.

Attributes

Returns

a SARIF compliant result object.