Documentation
¶
Overview ¶
Package report renders scan results as text, JSON or SARIF.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SARIF ¶
SARIF writes vulnerable and unknown findings as SARIF 2.1.0, which DefectDojo and most code scanning tools import. Rule IDs are "<detector>/<kind>". Every result has a fingerprint that stays the same across runs (DefectDojo deduplicates on it) and does not depend on line numbers or wording.
Types ¶
type DetectorInfo ¶
type DetectorInfo struct {
ID string `json:"id"`
Title string `json:"title"`
CVEs []string `json:"cves,omitempty"`
Advisories []string `json:"advisories,omitempty"`
Data string `json:"data,omitempty"`
}
DetectorInfo is what the report says about each detector that ran.
type Options ¶
type Options struct {
ShowCleared bool // list fixed and inactive findings
ShowSkipped bool // list every file that could not be scanned
}
Options control the text report.
Click to show internal directories.
Click to hide internal directories.