Skip to content

Commit

Permalink
Merge pull request #107 from Checkmarx/critical_Add
Browse files Browse the repository at this point in the history
feat(critical): add critical severity to KICS github action
  • Loading branch information
cxMiguelSilva authored Mar 18, 2024
2 parents 6d1dc92 + 26150f4 commit 03c9abe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Binary file added images/Critical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions src/commenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 severityOrder = ["CRITICAL","HIGH", "MEDIUM", "LOW", "INFO", "TRACE"];
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",
"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",
Expand All @@ -28,9 +28,6 @@ function createComment(results, withQueries = false, excludedColumnsForCommentsW
if (severity in severityCounters) {
message += `| ![${severity}](${severityIcons[severity]}) | ${severity.toUpperCase()} | ${severityCounters[severity.toUpperCase()]} |\n`;
}
else {
message += `| ![${severity}](${severityIcons[severity]}) | ${severity.toUpperCase()} | 0 |\n`;
}
}
message += `| ![TOTAL](${emptyIcon}) | TOTAL | ${results['total_counter']} |`;

Expand Down

0 comments on commit 03c9abe

Please sign in to comment.