From f10c5c9d2a6bc12a216ecd6814c9d1b2a825c6d6 Mon Sep 17 00:00:00 2001 From: Tiago Baptista <92083272+tiagobcx@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:32:53 +0100 Subject: [PATCH 1/2] Support for critical severity --- .../CheckmarxScanResultsAction/index.jelly | 42 ++++++++++++++----- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/src/main/resources/com/checkmarx/jenkins/CheckmarxScanResultsAction/index.jelly b/src/main/resources/com/checkmarx/jenkins/CheckmarxScanResultsAction/index.jelly index 67090a46..3d608cdf 100644 --- a/src/main/resources/com/checkmarx/jenkins/CheckmarxScanResultsAction/index.jelly +++ b/src/main/resources/com/checkmarx/jenkins/CheckmarxScanResultsAction/index.jelly @@ -131,6 +131,11 @@ width: 24.5%; } + .top-row .risk-level-tile.critical { + background-color: #C54A50; + color: #fcfdff; + } + .top-row .risk-level-tile.high { background: #f1605d; color: #fcfdff; @@ -206,6 +211,10 @@ width: 100%; } + .bar-chart .progress .progress-bar.bg-critical { + background-color: #C54A50 !important; + } + .bar-chart .progress .progress-bar.bg-danger { background-color: #f1605d !important; } @@ -252,6 +261,10 @@ padding-left: 5px; } + .severity-legend-dot.critical { + background-color: #C54A50; + } + .severity-engines-text, .severity-legend-text { float: left; @@ -377,6 +390,10 @@
Total Vulnerabilities
+
+ critical +
+
high
@@ -394,12 +411,17 @@
${resultSummary.getTotalIssues()}
-
${resultSummary.getHighIssues()} +
+ ${resultSummary.getCriticalIssues()} +
+
+ ${resultSummary.getHighIssues()}
${resultSummary.getMediumIssues()}
-
${resultSummary.getLowIssues()} +
+ ${resultSummary.getLowIssues()}
@@ -447,15 +469,15 @@ - \ No newline at end of file + From 244a37ea087b84b4eabe752d345bbbb1fe7ae1af Mon Sep 17 00:00:00 2001 From: Tiago Baptista <92083272+tiagobcx@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:32:38 +0100 Subject: [PATCH 2/2] Delete .github/workflows/pr-automation.yml --- .github/workflows/pr-automation.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/pr-automation.yml diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml deleted file mode 100644 index b040827d..00000000 --- a/.github/workflows/pr-automation.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: PR Automation -on: - pull_request_target: - types: [ready_for_review, opened, reopened] - -permissions: - contents: none - issues: write - pull-requests: write - -jobs: - add-reviewers: - runs-on: ubuntu-latest - if: ${{ github.event.pull_request.user.type != 'Bot' }} - steps: - - name: Request reviewers - env: - GH_REPO: ${{ github.repository }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PRNUM: ${{ github.event.pull_request.number }} - PRAUTHOR: ${{ github.event.pull_request.user.login }} - run: gh pr edit $PRNUM --add-reviewer OrShamirCM