From 3e3c560724d6f01281f7498bbc24287059dd60d3 Mon Sep 17 00:00:00 2001 From: "Jose I. Paris" Date: Fri, 20 Mar 2026 18:23:26 +0100 Subject: [PATCH] fix(cli): add line break before first violation in multi-policy output When a policy evaluation has multiple violations, the first violation was displayed inline while subsequent ones were indented. This adds a line break before the first violation too for consistent formatting. Closes #2898 Signed-off-by: Jose I. Paris --- app/cli/cmd/workflow_workflow_run_describe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cli/cmd/workflow_workflow_run_describe.go b/app/cli/cmd/workflow_workflow_run_describe.go index 2f920094c..9c990183e 100644 --- a/app/cli/cmd/workflow_workflow_run_describe.go +++ b/app/cli/cmd/workflow_workflow_run_describe.go @@ -283,7 +283,7 @@ func policiesTable(evs []*action.PolicyEvaluation, mt table.Writer, debugMode bo violations[i] = color.Sprint(v) } - msg = strings.Join(violations, prefix) + msg = prefix + strings.Join(violations, prefix) } name := ev.Name