From 9672fa71604d138c34ee2e724c6f9760c7bedb55 Mon Sep 17 00:00:00 2001 From: Artur Ribeiro Date: Thu, 22 Feb 2024 10:41:17 +0000 Subject: [PATCH] changes to image used in critical to maintain the same logic --- src/commenter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commenter.js b/src/commenter.js index f4f9eea..c720881 100644 --- a/src/commenter.js +++ b/src/commenter.js @@ -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://raw.githubusercontent.com/Checkmarx/kics-github-action/4d8cbbe0ba84707403c8715f72a5ba12c90887ef/images/Critical.png", + "CRITICAL": "https://github.com/Checkmarx/kics-github-action/assets/153724638/fde32f53-95ac-4ca5-acca-46879bbbf36a", "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", @@ -29,8 +29,8 @@ function createComment(results, withQueries = false, excludedColumnsForCommentsW message += `| ![${severity}](${severityIcons[severity]}) | ${severity.toUpperCase()} | ${severityCounters[severity.toUpperCase()]} |\n`; } else { - const imageTag = `${severity}`; - message += `| ${imageTag} | ${severity.toUpperCase()} | 0 |\n`; + //const imageTag = `${severity}`; + message += `| ![${severity}](${severityIcons[severity]}) | ${severity.toUpperCase()} | 0 |\n`; } } message += `| ![TOTAL](${emptyIcon}) | TOTAL | ${results['total_counter']} |`;