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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ func toPackages(catalog *pkg.Catalog, relationships []artifact.Relationship) []m
filesAnalyzed = true filesAnalyzed = true
for _, digest := range javaMetadata.ArchiveDigests { for _, digest := range javaMetadata.ArchiveDigests {
checksums = append(checksums, model.Checksum{ checksums = append(checksums, model.Checksum{
Algorithm: digest.Algorithm, Algorithm: strings.ToUpper(digest.Algorithm),
ChecksumValue: digest.Value, ChecksumValue: digest.Value,
}) })
} }