Skip to content

Commit

Permalink
Update spdx22json to only take uppercase checksum algorithm (anchore#946
Browse files Browse the repository at this point in the history
)
  • Loading branch information
spiffcs authored Apr 11, 2022
1 parent fa04114 commit 56d2c35
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 56d2c35

Please sign in to comment.