sarif

package
v0.55.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

type DraconIssueCollection struct {
	ToolName string
	Issues   []*v1.Issue
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL