From d23fa868568c3499c45debb6e4a0c2141b955e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fabianski?= Date: Mon, 11 Mar 2024 10:57:49 +0100 Subject: [PATCH] fix: disable placeholder when quiet scan (#1536) --- internal/commands/artifact/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/artifact/run.go b/internal/commands/artifact/run.go index c0e00f685..ce5b3aaac 100644 --- a/internal/commands/artifact/run.go +++ b/internal/commands/artifact/run.go @@ -412,7 +412,7 @@ func (r *runner) Report( return false, err } - if !reportSupported && r.scanSettings.Report.Report != flag.ReportPrivacy { + if !reportSupported && r.scanSettings.Report.Report != flag.ReportPrivacy && !r.scanSettings.Scan.Quiet { var placeholderStr *strings.Builder placeholderStr, err = getPlaceholderOutput(reportData, report, r.scanSettings, report.Inputgocloc) if err != nil {