From 9865c954abe7f9cc9ccd89b8b193233a01cd46eb Mon Sep 17 00:00:00 2001 From: Martin Hrabovcin Date: Wed, 21 Feb 2024 00:20:55 +0100 Subject: [PATCH] chore: debug markdown output --- .github/actions/copacetic-action/cmd/copa-action/report.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/copacetic-action/cmd/copa-action/report.go b/.github/actions/copacetic-action/cmd/copa-action/report.go index 957728c..ea5746c 100644 --- a/.github/actions/copacetic-action/cmd/copa-action/report.go +++ b/.github/actions/copacetic-action/cmd/copa-action/report.go @@ -33,7 +33,8 @@ func NewMarkdownCmd() *cobra.Command { return fmt.Errorf("failed to read JSON report: %w", err) } - return patch.WriteMarkdown(cmd.Context(), report, os.Stdout, printCVEs) + w := io.MultiWriter(os.Stdout, os.Stderr) + return patch.WriteMarkdown(cmd.Context(), report, w, printCVEs) }, } cmd.Flags().BoolVar(&printCVEs, "print-cves", printCVEs, "enable scanning and printing number of Critical and High CVEs")