From ad3d72466cde9a4c93e4bfa0579e2c72688fb616 Mon Sep 17 00:00:00 2001 From: Erran Carey <ecarey@gitlab.com> Date: Wed, 12 Apr 2023 21:48:28 +0100 Subject: [PATCH] Render friendly names for disabled scanners Fix https://gitlab.com/gitlab-org/gitlab/-/issues/406880 for Breach and Attack Simulation and Cluster Image Scanning were not using a human readable name in the security scanner alert. --- .../security_configuration/components/constants.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/security_configuration/components/constants.js b/app/assets/javascripts/security_configuration/components/constants.js index 1d5ff5eb16f12..d46e9983a44ac 100644 --- a/app/assets/javascripts/security_configuration/components/constants.js +++ b/app/assets/javascripts/security_configuration/components/constants.js @@ -158,6 +158,8 @@ export const LICENSE_COMPLIANCE_HELP_PATH = helpPagePath( 'user/compliance/license_compliance/index', ); +export const CLUSTER_IMAGE_SCANNING_NAME = s__('ciReport|Cluster Image Scanning'); + export const SCANNER_NAMES_MAP = { SAST: SAST_SHORT_NAME, SAST_IAC: SAST_IAC_NAME, @@ -167,7 +169,8 @@ export const SCANNER_NAMES_MAP = { COVERAGE_FUZZING: COVERAGE_FUZZING_NAME, SECRET_DETECTION: SECRET_DETECTION_NAME, DEPENDENCY_SCANNING: DEPENDENCY_SCANNING_NAME, - BAS: BAS_SHORT_NAME, + BREACH_AND_ATTACK_SIMULATION: BAS_NAME, + CLUSTER_IMAGE_SCANNING: CLUSTER_IMAGE_SCANNING_NAME, GENERIC: s__('ciReport|Manually added'), }; -- GitLab