Documentation ¶
Index ¶
Constants ¶
View Source
const ( LevelError = "error" LevelWarning = "warning" LevelNote = "note" LevelNone = "none" )
Variables ¶
This section is empty.
Functions ¶
func FromDraconEnrichedIssuesRun ¶
func FromDraconEnrichedIssuesRun(responses []*v1.EnrichedLaunchToolResponse, reportDuplicates bool) (*sarif.Report, error)
FromDraconEnrichedIssuesRun transforms a set of LaunchToolResponse to ONE sarif document with one run per launch tool response, by default it skips duplicates unless reportDuplicates is set to true.
func FromDraconRawIssuesRun ¶
func FromDraconRawIssuesRun(responses []*v1.LaunchToolResponse) (*sarif.Report, error)
FromDraconRawIssuesRun accepts a set of Dracon LaunchToolResponses and transforms them to a Sarif file.
Types ¶
type DraconIssueCollection ¶
DraconIssueCollection represents all the findings in a single Sarif file converted to dracon format.
func ToDracon ¶
func ToDracon(inFile string) ([]*DraconIssueCollection, error)
ToDracon accepts a sarif file and transforms each run to DraconIssueCollection ready to be written to a results file.
Click to show internal directories.
Click to hide internal directories.