From 825694ade1e2f1b26ad31c29280db03d40ccf28f Mon Sep 17 00:00:00 2001 From: Matthias Bertschy Date: Mon, 10 Feb 2025 10:25:44 +0100 Subject: [PATCH] do not skip on location resolver error Signed-off-by: Matthias Bertschy --- core/pkg/resultshandling/printer/v2/sarifprinter.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/pkg/resultshandling/printer/v2/sarifprinter.go b/core/pkg/resultshandling/printer/v2/sarifprinter.go index fa9f84a1..fd9ba27d 100644 --- a/core/pkg/resultshandling/printer/v2/sarifprinter.go +++ b/core/pkg/resultshandling/printer/v2/sarifprinter.go @@ -209,8 +209,7 @@ func (sp *SARIFPrinter) printConfigurationScan(ctx context.Context, opaSessionOb rsrcAbsPath := path.Join(basePath, filepath) locationResolver, err := locationresolver.NewFixPathLocationResolver(rsrcAbsPath) // if err != nil && !helmChartFileType { - logger.L().Debug("failed to create location resolver", helpers.Error(err)) - continue + logger.L().Debug("failed to create location resolver, will use default location", helpers.Error(err)) } for _, toPin := range result.AssociatedControls {