Skip to content

Commit

Permalink
chore: debug markdown output
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrabovcin committed Feb 20, 2024
1 parent 69401cd commit 9865c95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/copacetic-action/cmd/copa-action/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9865c95

Please sign in to comment.