Documentation
¶
Overview ¶
Package scan rapproche les composants des SBOM de la base OSV et applique le VEX du dossier.
Index ¶
Constants ¶
View Source
const ( StatusOpen = "open" StatusNotAffected = "not_affected" StatusFixed = "fixed" StatusToVerify = "to_verify" )
Statuts d'un constat après application du VEX.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
osv.Finding
Status string `json:"status"`
// Conflict : le VEX dit « fixed » alors qu'OSV classe la version exacte du SBOM comme affectée.
Conflict bool `json:"conflict,omitempty"`
}
Finding est un constat OSV avec son statut VEX.
func (Finding) ConflictMessage ¶
ConflictMessage décrit le conflit VEX/OSV pour l'affichage.
type NoDBError ¶
type NoDBError struct{ Ecosystem string }
NoDBError signale qu'aucune archive OSV n'existe pour un écosystème des SBOM : ses composants ne peuvent pas être vérifiés.
type Result ¶
type Result struct {
SBOMs int `json:"sboms"`
Components int `json:"components"`
Findings []Finding `json:"findings"`
Open int `json:"open"`
ToVerify int `json:"to_verify"`
NotAffected int `json:"not_affected"`
Fixed int `json:"fixed"`
DBDate time.Time `json:"db_date"`
Conflicts int `json:"conflicts"`
Unchecked int `json:"unchecked"`
// UncheckedComponents : composants sans purl exploitable ou de type non pris en charge.
UncheckedComponents []sbom.Component `json:"unchecked_components"`
}
Result est le résultat d'un scan. Les noms JSON (snake_case) sont stables : sortie de « tenon cra scan --json ».
Click to show internal directories.
Click to hide internal directories.