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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-03-26 18:29:09 +0300
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-03-26 18:29:09 +0300
commit71aeb8ebdd2cb34ba460abeb73790505311d32d7 (patch)
treef19773b7534aa43bc46e0138a8e8095ddef87d09 /doc
parent9b0fda07bcaa6af765c5858bfeaf8035a49f9470 (diff)
parentc07cf3b6b7c56c2adabe4e2c3aa81a1f8452fb2e (diff)
Merge branch 'security-use-untrusted-regexp-11-9' into '11-9-stable'
Use UntrustedRegexp for CI refs matching See merge request gitlab/gitlabhq!3006
Diffstat (limited to 'doc')
-rw-r--r--doc/ci/yaml/README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 985895acce3..816d12a8dd4 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -340,6 +340,19 @@ job:
- branches
```
+Pattern matching is case-sensitive by default. Use `i` flag modifier, like
+`/pattern/i` to make a pattern case-insensitive:
+
+```yaml
+job:
+ # use regexp
+ only:
+ - /^issue-.*$/i
+ # use special keyword
+ except:
+ - branches
+```
+
In this example, `job` will run only for refs that are tagged, or if a build is
explicitly requested via an API trigger or a [Pipeline Schedule][schedules]: