File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -414,19 +414,19 @@ try {
414414
415415try {
416416 if ( cmdOPS === 'REPORT' ) {
417- utilities . printTableWithJSON ( securityReports . vulnerabilities . map ( v => {
417+ utilities . printTableWithJSON ( securityReports . vulnerabilities . map ( ( v , idx ) => {
418418 securityServerity . critical += v . severity == 'Critical' ? 1 : 0
419419 securityServerity . high += v . severity == 'High' ? 1 : 0
420420 securityServerity . medium += v . severity == 'Medium' ? 1 : 0
421421 securityServerity . low += v . severity == 'Low' ? 1 : 0
422422 securityServerity . info += v . severity == 'Unknown' ? 1 : 0
423423 return {
424- id : v . id . truncateLeft ( 10 ) ,
424+ index : idx + 1 ,
425425 name : v . name . truncateLeft ( 30 ) ,
426426 severity : v . severity ,
427427 category : v . category ,
428428 identifier : v . identifiers . map ( i => i . type == 'cwe' ? i . name : undefined ) . filter ( o => o ) ,
429- location : v . location . file . truncateLeft ( 50 )
429+ location : v . location . file . truncateLeft ( 30 )
430430 }
431431 } ) )
432432 if ( securityServerity . critical || securityServerity . high ) {
You can’t perform that action at this time.
0 commit comments