Skip to content

Commit cb643ea

Browse files
committed
fix(cli): wrap long material annotation values in describe output
Cosign signature annotations on container materials carry ~1200-char base64 blobs that ballooned the Materials table column width to several times the terminal width. Wrap to 100 chars like the existing container image Value field does. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 5bd2a917-fb7b-400c-9772-60ba6af6c9af, b66717f5-626e-4c20-8d33-59c129b5885d
1 parent 9f8e20a commit cb643ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/cli/cmd/workflow_workflow_run_describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func predicateV1Table(att *action.WorkflowRunAttestationItem) {
221221
if len(m.Annotations) > 0 {
222222
mt.AppendRow(table.Row{"Annotations", "------"})
223223
for _, a := range m.Annotations {
224-
mt.AppendRow(table.Row{"", fmt.Sprintf("%s: %s", a.Name, a.Value)})
224+
mt.AppendRow(table.Row{"", wrap.String(fmt.Sprintf("%s: %s", a.Name, a.Value), 100)})
225225
}
226226
}
227227
evs := att.PolicyEvaluations[m.Name]

0 commit comments

Comments
 (0)