Documentation
¶
Index ¶
- Constants
- func CreateSourceRemediationTable(source models.PackageSource, groupFixedVersions map[string][]string) table.Writer
- func Form(count int, singular, plural string) string
- func GroupFixedVersions(flattened []models.VulnerabilityFlattened) map[string][]string
- func MaxSeverity(group models.GroupInfo, pkg models.PackageVulns) string
- func PrintGHAnnotationReport(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error
- func PrintJSONResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error
- func PrintMarkdownTableResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer)
- func PrintSARIFReport(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error
- func PrintTableResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer, ...)
Constants ¶
const OSVBaseVulnerabilityURL = "https://osv.dev/"
OSVBaseVulnerabilityURL is the base URL for detailed vulnerability views. Copied in from osv package to avoid referencing the osv package unnecessarily
Variables ¶
This section is empty.
Functions ¶
func CreateSourceRemediationTable ¶ added in v1.4.0
func CreateSourceRemediationTable(source models.PackageSource, groupFixedVersions map[string][]string) table.Writer
CreateSourceRemediationTable creates a vulnerability table which includes the fixed versions for a specific source file
func Form ¶ added in v1.4.0
Form returns the singular or plural form that should be used based on the given count
func GroupFixedVersions ¶ added in v1.4.0
func GroupFixedVersions(flattened []models.VulnerabilityFlattened) map[string][]string
GroupFixedVersions builds the fixed versions for each ID Group
func MaxSeverity ¶ added in v1.4.0
func MaxSeverity(group models.GroupInfo, pkg models.PackageVulns) string
func PrintGHAnnotationReport ¶ added in v1.4.0
func PrintGHAnnotationReport(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error
PrintGHAnnotationReport prints Github specific annotations to outputWriter
func PrintJSONResults ¶
func PrintJSONResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error
PrintJSONResults writes results to the provided writer in JSON format
func PrintMarkdownTableResults ¶ added in v1.2.0
func PrintMarkdownTableResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer)
PrintTableResults prints the osv scan results into a human friendly table.
func PrintSARIFReport ¶ added in v1.4.0
func PrintSARIFReport(vulnResult *models.VulnerabilityResults, outputWriter io.Writer) error
PrintSARIFReport prints SARIF output to outputWriter
func PrintTableResults ¶
func PrintTableResults(vulnResult *models.VulnerabilityResults, outputWriter io.Writer, terminalWidth int)
PrintTableResults prints the osv scan results into a human friendly table.
Types ¶
This section is empty.