mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 10:36:45 +01:00
Update spdx22json to only take uppercase checksum algorithm (#946)
This commit is contained in:
parent
15e45a8ce1
commit
b46d044d7e
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user