feat(sbom): add support for SPDX attestations (#9829)

This commit is contained in:
Teppei Fukuda
2025-11-21 17:44:54 +09:00
committed by GitHub
parent 5c42cc590b
commit d8eaaeb611
5 changed files with 238 additions and 14 deletions

View File

@@ -79,7 +79,7 @@ func (a Artifact) Inspect(ctx context.Context) (artifact.Reference, error) {
switch format {
case sbom.FormatCycloneDXJSON, sbom.FormatCycloneDXXML, sbom.FormatAttestCycloneDXJSON, sbom.FormatLegacyCosignAttestCycloneDXJSON:
artifactType = types.TypeCycloneDX
case sbom.FormatSPDXTV, sbom.FormatSPDXJSON:
case sbom.FormatSPDXTV, sbom.FormatSPDXJSON, sbom.FormatAttestSPDXJSON:
artifactType = types.TypeSPDX
}