feat(sbom): add support for CycloneDX JSON Attestation of the correct specification (#3849)

This commit is contained in:
saso
2023-03-19 22:40:58 +09:00
committed by GitHub
parent a754a04e2b
commit ba9b0410c9
2 changed files with 44 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ func (a Artifact) Inspect(_ context.Context) (types.ArtifactReference, error) {
var artifactType types.ArtifactType
switch format {
case sbom.FormatCycloneDXJSON, sbom.FormatCycloneDXXML, sbom.FormatAttestCycloneDXJSON:
case sbom.FormatCycloneDXJSON, sbom.FormatCycloneDXXML, sbom.FormatAttestCycloneDXJSON, sbom.FormatLegacyCosignAttestCycloneDXJSON:
artifactType = types.ArtifactCycloneDX
case sbom.FormatSPDXTV, sbom.FormatSPDXJSON:
artifactType = types.ArtifactSPDX