Skip to content

Commit

Permalink
Update spdx22json to only take uppercase checksum algorithm (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiffcs authored Apr 11, 2022
1 parent 15e45a8 commit b46d044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/formats/spdx22json/to_format_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
Expand Down

0 comments on commit b46d044

Please sign in to comment.