Commit 3fc3abc
committed
feat(cli): show assessment status on active violations too, drop "[no fix]"
Assessment statuses other than NOT_AFFECTED/FIXED (AFFECTED,
UNDER_INVESTIGATION, etc.) are equally meaningful on findings that
remain active. Surface them in the same severity-parens regardless of
the suppress flag so active rows can read e.g.
"CVE-X (HIGH, AFFECTED) libc6@2.41" or
"CVE-X (HIGH, UNDER_INVESTIGATION) libc6@2.41".
Suppressed findings without an explicit assessment fall back to the
literal "suppressed" tag (unchanged for existing tests). Coloring
still red/yellow by suppress flag — assessment status is metadata,
gate state is independent.
Also drop "[no fix]" — the absence of "[fix: vN]" already conveys it
and shaves a column. Extracted violationAssessment helper centralizing
the Vulnerability/Sast/LicenseViolation dispatch (replaces
suppressedStatus). joinTag inlined to direct conditional.
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-59c129b5885d1 parent 86b1ad8 commit 3fc3abc
2 files changed
Lines changed: 68 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
298 | | - | |
299 | | - | |
300 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
301 | 303 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
308 | 307 | | |
309 | 308 | | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
314 | | - | |
| 313 | + | |
315 | 314 | | |
316 | 315 | | |
317 | | - | |
318 | 316 | | |
319 | | - | |
| 317 | + | |
320 | 318 | | |
321 | | - | |
322 | 319 | | |
323 | | - | |
324 | | - | |
325 | | - | |
| 320 | + | |
326 | 321 | | |
327 | | - | |
| 322 | + | |
328 | 323 | | |
329 | 324 | | |
330 | 325 | | |
331 | | - | |
| 326 | + | |
332 | 327 | | |
333 | 328 | | |
334 | 329 | | |
| |||
342 | 337 | | |
343 | 338 | | |
344 | 339 | | |
345 | | - | |
346 | | - | |
| 340 | + | |
| 341 | + | |
347 | 342 | | |
348 | 343 | | |
349 | 344 | | |
| |||
358 | 353 | | |
359 | 354 | | |
360 | 355 | | |
361 | | - | |
362 | | - | |
| 356 | + | |
| 357 | + | |
363 | 358 | | |
364 | 359 | | |
365 | 360 | | |
366 | 361 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
377 | 373 | | |
378 | | - | |
379 | 374 | | |
380 | 375 | | |
381 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
382 | 379 | | |
383 | 380 | | |
384 | | - | |
| 381 | + | |
385 | 382 | | |
386 | | - | |
| 383 | + | |
387 | 384 | | |
388 | | - | |
| 385 | + | |
389 | 386 | | |
390 | | - | |
| 387 | + | |
391 | 388 | | |
392 | 389 | | |
393 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
81 | 109 | | |
82 | 110 | | |
83 | 111 | | |
| |||
91 | 119 | | |
92 | 120 | | |
93 | 121 | | |
94 | | - | |
| 122 | + | |
95 | 123 | | |
96 | 124 | | |
97 | 125 | | |
| |||
153 | 181 | | |
154 | 182 | | |
155 | 183 | | |
156 | | - | |
| 184 | + | |
157 | 185 | | |
158 | 186 | | |
159 | 187 | | |
160 | 188 | | |
161 | | - | |
| 189 | + | |
162 | 190 | | |
163 | 191 | | |
164 | 192 | | |
| |||
0 commit comments