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:
Ramkumar Chinchani
2026-05-23 23:24:12 -07:00
committed by GitHub
parent d8fb19819b
commit 4e4d00a0a6
12 changed files with 712 additions and 29 deletions
+8
View File
@@ -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 {