Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/prepare.yml20
1 files changed, 18 insertions, 2 deletions
diff --git a/.gitlab/ci/prepare.yml b/.gitlab/ci/prepare.yml
index 4770c128..692e7920 100644
--- a/.gitlab/ci/prepare.yml
+++ b/.gitlab/ci/prepare.yml
@@ -24,11 +24,27 @@ variables:
- if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable(-ee)?$/'
- if: '$CI_COMMIT_BRANCH =~ /^security\//'
+.rules-for-dependency-scanners: &rules-for-dependency-scanners
+ stage: prepare
+ needs: []
+ rules:
+ # For merge requests, create a pipeline.
+ - if: '$CI_MERGE_REQUEST_IID'
+ changes:
+ - go.mod
+ # For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
+ - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+ # For tags, create a pipeline.
+ - if: '$CI_COMMIT_TAG'
+ # For stable, and security branches, create a pipeline.
+ - if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable(-ee)?$/'
+ - if: '$CI_COMMIT_BRANCH =~ /^security\//'
+
license_scanning:
- <<: *rules-for-scanners
+ <<: *rules-for-dependency-scanners
gemnasium-dependency_scanning:
- <<: *rules-for-scanners
+ <<: *rules-for-dependency-scanners
semgrep-sast:
<<: *rules-for-scanners