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