diff --git a/lib/scorecard/enrich_cyclonedx.go b/lib/scorecard/enrich_cyclonedx.go index 2832728..d3c6717 100644 --- a/lib/scorecard/enrich_cyclonedx.go +++ b/lib/scorecard/enrich_cyclonedx.go @@ -62,7 +62,7 @@ func enrichCDX(bom *cdx.BOM) { return } - if resp.JSON200 == nil || resp.JSON200.RepositoryUrl == nil { + if resp.JSON200 == nil || resp.JSON200.RepositoryUrl == nil || *resp.JSON200.RepositoryUrl == "" { return }