Update spdx22json to only take uppercase checksum algorithm (#946)

This commit is contained in:
Christopher Angelo Phillips
2022-04-11 14:56:04 -04:00
committed by GitHub
parent 15e45a8ce1
commit b46d044d7e
@@ -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,
})
}