From eeb374100cb2d0e43157e814473887e0303b5f58 Mon Sep 17 00:00:00 2001 From: Paul Rosca Date: Thu, 22 Aug 2024 15:37:58 +0300 Subject: [PATCH] fix: empty ecosyste.ms repository url --- lib/scorecard/enrich_cyclonedx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }