Skip to content

Commit

Permalink
Added debian SBOM example and fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed May 9, 2023
1 parent a01b498 commit 88432dd
Show file tree
Hide file tree
Showing 2 changed files with 11,323 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/enrich.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ func enrichComponentsWithEcosystems(bom *cdx.BOM, enrichFuncs []func(cdx.Compone
resp, err := GetPackageData(purl)
if err == nil {
packageData := resp.JSON200
for _, enrichFunc := range enrichFuncs {
component = enrichFunc(component, *packageData)
}
if packageData != nil {
for _, enrichFunc := range enrichFuncs {
component = enrichFunc(component, *packageData)
}
}
}
newComponents[i] = component
wg.Done()
Expand Down
Loading

0 comments on commit 88432dd

Please sign in to comment.