From 0372a4fca670b3637f4f0274782736203ec0eef7 Mon Sep 17 00:00:00 2001 From: Mujib Ahasan Date: Tue, 10 Mar 2026 23:14:33 +0530 Subject: [PATCH] log added in scanImage(): value of scanInfo.ListingURL for reference Signed-off-by: Mujib Ahasan --- pkg/imagescan/imagescan.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/imagescan/imagescan.go b/pkg/imagescan/imagescan.go index a15673d7..25be72f8 100644 --- a/pkg/imagescan/imagescan.go +++ b/pkg/imagescan/imagescan.go @@ -26,6 +26,7 @@ import ( "github.com/anchore/grype/grype/vulnerability" "github.com/anchore/stereoscope/pkg/image" "github.com/anchore/syft/syft" + "github.com/kubescape/go-logger" "github.com/kubescape/kubescape/v3/core/cautils" ) @@ -47,6 +48,7 @@ func NewDefaultDBConfig(grypeURL string) (distribution.Config, installation.Conf dir := filepath.Join(xdg.CacheHome, defaultDBDirName) finalURL := defaultGrypeListingURL if grypeURL != "" { + logger.L().Info(fmt.Sprintf("Using custom Grype database URL: %s", grypeURL)) parsed, err := url.ParseRequestURI(grypeURL) if err != nil { return distribution.Config{}, installation.Config{}, false, err