fix sast execution conditions

This commit is contained in:
proletarius101 2021-12-12 18:05:37 +00:00
parent 5d6f03a778
commit 8bb103ab8a

View file

@ -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: