From e4f01c691150a0a7f641f94a08ad29c8489b8328 Mon Sep 17 00:00:00 2001 From: Artur Ribeiro Date: Fri, 15 Mar 2024 18:16:04 +0000 Subject: [PATCH 1/3] new critical img and logic to get image --- images/Critical.png | Bin 0 -> 954 bytes src/commenter.js | 3 --- 2 files changed, 3 deletions(-) create mode 100644 images/Critical.png diff --git a/images/Critical.png b/images/Critical.png new file mode 100644 index 0000000000000000000000000000000000000000..4534c1662d0b5fb1fb73aee4f390eeff8cf17ea5 GIT binary patch literal 954 zcmV;r14aCaP)P000>X1^@s6#OZ}&00001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D15ZgrK~zXf<&|AX zR6!KS&)n5rcm2p{x5%}x+Ep@5SJS<_cRF{R?s|7u(}G_5!DVL7%su~^bLIp7Pa1b* zBsC^mj!*!Bn^pwj<+8|5n|4}`QVD7a&?s!zctq{hJbT*|AF?dVio8rr)P;sdWKja8 z1c(()$_gk2Cn3^}5YX1;_P0B^IVdWTrc_Is*Gn@AAx8AF54&>+fpF|vDm)bNU^$46 z-U1Wx!cmfPtV|nlIQHe+tW_Z;HCMEt%30Usdp!1Wk&bk-HF2L?b_fdE^ zAGAE`l@L15YYI`RW{4{;0%?8@I*U(3>)~TCP*wq<(Q6>3^a^MUdOp%es371j_n{V9 z*eNQE*;ydywBUTv023WH@VH!9e+9Op5*WBv2~_m^g%Yp$L!<008NZbX-+4_zzbS^5 zQ@#D{aL7n*H%xYR!DLrANTSGWi*UQ_N#A&#p%TIHJJ5}4sh;VDNrlC1WF-R!>P$w^ ztv9hvu^7A&zT`u_mp2)z5du&IylgMleZPrSwjx>^bBM2 z%KbNhoR|5rF_?3X1{07&)kh4PTHaIxWAPMKByJ9deASPL0vzAp+ttHu0R$D1*@LfM#I)`dq0(ja74QP$1l*KL z4<$jg=Jj>Ab8}Dv5+95=DQVlOpgD`43-J#@LQ{Ud`r!RF&FSgUOmKyh c`-cGh1Y3|fuB#zt3IG5A07*qoM6N<$f?ivo{{R30 literal 0 HcmV?d00001 diff --git a/src/commenter.js b/src/commenter.js index ec596f1..31b9cc0 100644 --- a/src/commenter.js +++ b/src/commenter.js @@ -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']} |`; From 88fa5c6bfb020c2ad298af00c4cd5b8dfbced92d Mon Sep 17 00:00:00 2001 From: Artur Ribeiro Date: Fri, 15 Mar 2024 18:19:15 +0000 Subject: [PATCH 2/3] change link to critical image --- src/commenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commenter.js b/src/commenter.js index 31b9cc0..738f852 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://github.com/Checkmarx/kics-github-action/assets/153724638/e73da659-8985-43a5-bb3c-ddbecd786690", + "CRITICAL": "https://raw.githubusercontent.com/Checkmarx/kics-github-action/e4f01c691150a0a7f641f94a08ad29c8489b8328/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", From 26150f484e953577d582cae85a9937bf8b20efad Mon Sep 17 00:00:00 2001 From: Artur Ribeiro Date: Mon, 18 Mar 2024 11:20:51 +0000 Subject: [PATCH 3/3] new link for critical image --- src/commenter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commenter.js b/src/commenter.js index 738f852..df7622c 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/e4f01c691150a0a7f641f94a08ad29c8489b8328/images/Critical.png", + "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",