diff --git a/templates/sast.yml b/templates/sast.yml index 850aeb0..d937e76 100644 --- a/templates/sast.yml +++ b/templates/sast.yml @@ -192,7 +192,7 @@ pmd-apex-sast: # to cover both the *MR pipeline* and the *branch pipeline* workflows. # 1. Run the job in an *MR* pipeline if MR pipelines for AST are enabled and there's an open merge request. - - if: '$[[ inputs.enable_mr_pipelines ]]" == "true" && + - if: '"$[[ inputs.enable_mr_pipelines ]]" == "true" && $CI_PIPELINE_SOURCE == "merge_request_event"' exists: !reference [.pmd-apex-exist-rules, exists]