Skip to content

Commit

Permalink
Merge pull request #234 from interlynk-io/233-bug-run-latest-sbom-sco…
Browse files Browse the repository at this point in the history
…re-returns-with-panic

Change from package originator to verifier presense
  • Loading branch information
riteshnoronha committed Apr 24, 2024
2 parents 32d97df + 173aa5c commit 7f26bc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/sbom/spdx.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ func (s *spdxDoc) parseComps() {
nc.supplier = *supp
}
nc.supplierName = s.addSupplierName(index)
if sc.PackageOriginator != nil {

if sc.PackageVerificationCode != nil {
nc.sourceCodeHash = sc.PackageVerificationCode.Value
}

Expand Down

0 comments on commit 7f26bc8

Please sign in to comment.