From 8bb103ab8a326fbc5d49bc2b1d6e271e338532d1 Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Sun, 12 Dec 2021 18:05:37 +0000 Subject: [PATCH] fix sast execution conditions --- .gitlab-ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index efd81e676b..7376d0c66e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,11 @@ include: - template: Security/SAST.gitlab-ci.yml +stages: + - build + - test + - report + variables: pip: pip3 --timeout 100 --retries 10 @@ -399,6 +404,7 @@ check_git_repos: - exit $EXITVALUE sast: + stage: report variables: MOBSF_API_KEY: key SAST_EXPERIMENTAL_FEATURES: "true" @@ -409,17 +415,10 @@ sast: # Make sure the apk is searched before the manifest, so only apks are scanned ANALYZER_TARGET_DIR: $CI_PROJECT_DIR/tmp/ - needs: - - fdroid build rules: - - if: '$CI_DEFAULT_BRANCH && $CI_PROJECT_PATH == "fdroid/fdroiddata"' - when: never - - if: '$CI_PIPELINE_SOURCE == "pipeline"' - when: never - - if: '$CI_PIPELINE_SOURCE == "schedule"' - when: never - - if: '$CI_PIPELINE_SOURCE == "trigger"' + - if: '$CI_PIPELINE_SOURCE != "merge_request_event"' when: never + allow_failure: true mobsf-ios-sast: rules: