From ce86b00ae3635426f81329b5634ba944ba1aea86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Hed=C3=A9n?= Date: Thu, 18 Apr 2024 16:19:38 +0200 Subject: [PATCH] Test Config values --- internal/scan/scanner.go | 4 +++- internal/upload/batch.go | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/scan/scanner.go b/internal/scan/scanner.go index 1a22ad38..119a54ae 100644 --- a/internal/scan/scanner.go +++ b/internal/scan/scanner.go @@ -227,8 +227,10 @@ func (dScanner *DebrickedScanner) getDebrickedConfig(path string, exclusions []s if configPath == "" { return nil } + debrickedConfig := upload.GetDebrickedConfig(configPath) + fmt.Println(*debrickedConfig) - return upload.GetDebrickedConfig(configPath) + return debrickedConfig } func (dScanner *DebrickedScanner) handleScanError(err error, passOnTimeOut bool) error { diff --git a/internal/upload/batch.go b/internal/upload/batch.go index a59223f9..2f130db5 100644 --- a/internal/upload/batch.go +++ b/internal/upload/batch.go @@ -180,6 +180,8 @@ func (uploadBatch *uploadBatch) initAnalysis() error { DebrickedIntegration: "cli", }) + fmt.Println(string(body)) + if err != nil { return err }