From cc19beb6b6accc70093cea35021aafbf21ed30cf Mon Sep 17 00:00:00 2001 From: Melissa Beldman Date: Tue, 3 Jun 2025 20:42:53 +0000 Subject: [PATCH] Update file sast.yml --- templates/sast.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/sast.yml b/templates/sast.yml index b06ebc2..01786b5 100644 --- a/templates/sast.yml +++ b/templates/sast.yml @@ -36,6 +36,10 @@ spec: description: The tags to apply to SAST jobs so they can be picked up by an appropriate GitLab runner default: [] type: array + sast_java_version: + description: The Java version used by the SAST analyzer + default: 21 + type: integer --- .sast-analyzer: stage: $[[ inputs.stage ]] @@ -49,6 +53,7 @@ spec: DEFAULT_SAST_EXCLUDED_PATHS: $[[ inputs.excluded_paths ]] SAST_EXCLUDED_PATHS: "$DEFAULT_SAST_EXCLUDED_PATHS" COMPILE: $[[ inputs.use_precompiled_artifacts ]] + SAST_JAVA_VERSION: $[[ inputs.sast_java_version | expand_vars ]] dependencies: $[[ inputs.sast_dependencies ]] script: - /analyzer run