From b46d044d7e3afc2ee09fd5ff26635f783628126e Mon Sep 17 00:00:00 2001 From: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Date: Mon, 11 Apr 2022 14:56:04 -0400 Subject: [PATCH] Update spdx22json to only take uppercase checksum algorithm (#946) --- internal/formats/spdx22json/to_format_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/formats/spdx22json/to_format_model.go b/internal/formats/spdx22json/to_format_model.go index 2e1a0c65cff..c69518f1703 100644 --- a/internal/formats/spdx22json/to_format_model.go +++ b/internal/formats/spdx22json/to_format_model.go @@ -67,7 +67,7 @@ func toPackages(catalog *pkg.Catalog, relationships []artifact.Relationship) []m filesAnalyzed = true for _, digest := range javaMetadata.ArchiveDigests { checksums = append(checksums, model.Checksum{ - Algorithm: digest.Algorithm, + Algorithm: strings.ToUpper(digest.Algorithm), ChecksumValue: digest.Value, }) }