mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
feat: add trivy-based sbom artifact generation support (#4088)
fixes issue #4067 Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
d8fb19819b
commit
4e4d00a0a6
@@ -63,6 +63,14 @@ type TrivyConfig struct {
|
||||
// VulnSeveritySources controls Trivy's severity source selection (same as Trivy's --vuln-severity-source).
|
||||
// If empty, zot will default it to ["auto"].
|
||||
VulnSeveritySources []string
|
||||
SBOM *SBOMConfig
|
||||
}
|
||||
|
||||
type SBOMConfig struct {
|
||||
Enable bool
|
||||
// Format controls the generated SBOM output format.
|
||||
// Supported values are "spdx-json" (default) and "cyclonedx".
|
||||
Format string
|
||||
}
|
||||
|
||||
type MetricsConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user