Merge pull request #107 from Checkmarx/critical_Add
feat(critical): add critical severity to KICS github action
This commit is contained in:
BIN
images/Critical.png
Normal file
BIN
images/Critical.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 954 B |
@ -4,7 +4,7 @@ const { summary } = require('@actions/core/lib/summary');
|
|||||||
const kicsLogo = "https://user-images.githubusercontent.com/111127232/203838108-ad537fea-4573-495a-9619-18500ee81dd9.png"
|
const kicsLogo = "https://user-images.githubusercontent.com/111127232/203838108-ad537fea-4573-495a-9619-18500ee81dd9.png"
|
||||||
const severityOrder = ["CRITICAL","HIGH", "MEDIUM", "LOW", "INFO", "TRACE"];
|
const severityOrder = ["CRITICAL","HIGH", "MEDIUM", "LOW", "INFO", "TRACE"];
|
||||||
const severityIcons = {
|
const severityIcons = {
|
||||||
"CRITICAL": "https://github.com/Checkmarx/kics-github-action/assets/153724638/e73da659-8985-43a5-bb3c-ddbecd786690",
|
"CRITICAL": "https://raw.githubusercontent.com/Checkmarx/kics-github-action/88fa5c6bfb020c2ad298af00c4cd5b8dfbced92d/images/Critical.png",
|
||||||
"HIGH": "https://user-images.githubusercontent.com/23239410/92157087-97285600-ee32-11ea-988f-0aca12c4c126.png",
|
"HIGH": "https://user-images.githubusercontent.com/23239410/92157087-97285600-ee32-11ea-988f-0aca12c4c126.png",
|
||||||
"MEDIUM": "https://user-images.githubusercontent.com/23239410/92157093-98598300-ee32-11ea-83d7-af52251a011b.png",
|
"MEDIUM": "https://user-images.githubusercontent.com/23239410/92157093-98598300-ee32-11ea-83d7-af52251a011b.png",
|
||||||
"LOW": "https://user-images.githubusercontent.com/23239410/92157091-98598300-ee32-11ea-8498-19bd7d62019b.png",
|
"LOW": "https://user-images.githubusercontent.com/23239410/92157091-98598300-ee32-11ea-8498-19bd7d62019b.png",
|
||||||
@ -28,9 +28,6 @@ function createComment(results, withQueries = false, excludedColumnsForCommentsW
|
|||||||
if (severity in severityCounters) {
|
if (severity in severityCounters) {
|
||||||
message += `|  | ${severity.toUpperCase()} | ${severityCounters[severity.toUpperCase()]} |\n`;
|
message += `|  | ${severity.toUpperCase()} | ${severityCounters[severity.toUpperCase()]} |\n`;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
message += `|  | ${severity.toUpperCase()} | 0 |\n`;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
message += `|  | TOTAL | ${results['total_counter']} |`;
|
message += `|  | TOTAL | ${results['total_counter']} |`;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user