ci

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Severities = []string{
	"unknown",
	"negligible",
	"low",
	"medium",
	"high",
	"critical",
}

Functions

func CDX

func CDX(cdx *cyclonedx.BOM) string

func GetJoinedSeverities added in v1.13.0

func GetJoinedSeverities() string

func IsValidSeverity added in v1.13.0

func IsValidSeverity(severity string) bool

func MatchTable

func MatchTable(matches []Match)

func Run

func Run(ci config.CIConfiguration, cdx *cyclonedx.BOM)

Run implements CI logic for vulnerability analysis

func TallyTable

func TallyTable(tally Tally) string

func Vex

func Vex(cdx *cyclonedx.BOM) string

Types

type Assessment

type Assessment struct {
	Tally        Tally
	FailCriteria string
	Matches      []Match
	Passed       bool
}

func Evaluate

func Evaluate(criteria string, cdx *cyclonedx.BOM) Assessment

type CIModeConfig added in v1.13.0

type CIModeConfig struct {
	Quiet        bool
	FailCriteria string
}

CIModeConfig holds CI-related configuration

func SetupCIMode added in v1.13.0

func SetupCIMode(ci, quiet bool, failCriteria string) CIModeConfig

SetupCIMode configures CI-related settings and returns the configuration

type Match

type Match struct {
	Component     *cyclonedx.Component
	Vulnerability *cyclonedx.Vulnerability
}

type Tally

type Tally struct {
	Unknown    int
	Negligible int
	Low        int
	Medium     int
	High       int
	Critical   int
}

Jump to

Keyboard shortcuts

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