Skip to content

Commit 2c5194b

Browse files
authored
Update entrypoint.js
1 parent ea0cded commit 2c5194b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,19 +414,19 @@ try {
414414

415415
try {
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) {

0 commit comments

Comments
 (0)