Skip to content

Commit 03c9abe

Browse files
Merge pull request #107 from Checkmarx/critical_Add
feat(critical): add critical severity to KICS github action
2 parents 6d1dc92 + 26150f4 commit 03c9abe

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

images/Critical.png

954 Bytes
Loading

src/commenter.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { summary } = require('@actions/core/lib/summary');
44
const kicsLogo = "https://user-images.githubusercontent.com/111127232/203838108-ad537fea-4573-495a-9619-18500ee81dd9.png"
55
const severityOrder = ["CRITICAL","HIGH", "MEDIUM", "LOW", "INFO", "TRACE"];
66
const severityIcons = {
7-
"CRITICAL": "https://github.com/Checkmarx/kics-github-action/assets/153724638/e73da659-8985-43a5-bb3c-ddbecd786690",
7+
"CRITICAL": "https://raw.githubusercontent.com/Checkmarx/kics-github-action/88fa5c6bfb020c2ad298af00c4cd5b8dfbced92d/images/Critical.png",
88
"HIGH": "https://user-images.githubusercontent.com/23239410/92157087-97285600-ee32-11ea-988f-0aca12c4c126.png",
99
"MEDIUM": "https://user-images.githubusercontent.com/23239410/92157093-98598300-ee32-11ea-83d7-af52251a011b.png",
1010
"LOW": "https://user-images.githubusercontent.com/23239410/92157091-98598300-ee32-11ea-8498-19bd7d62019b.png",
@@ -28,9 +28,6 @@ function createComment(results, withQueries = false, excludedColumnsForCommentsW
2828
if (severity in severityCounters) {
2929
message += `| ![${severity}](${severityIcons[severity]}) | ${severity.toUpperCase()} | ${severityCounters[severity.toUpperCase()]} |\n`;
3030
}
31-
else {
32-
message += `| ![${severity}](${severityIcons[severity]}) | ${severity.toUpperCase()} | 0 |\n`;
33-
}
3431
}
3532
message += `| ![TOTAL](${emptyIcon}) | TOTAL | ${results['total_counter']} |`;
3633

0 commit comments

Comments
 (0)