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-04-02 10:48:24 +0300
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-04-02 10:48:24 +0300
commit3098259e90616c86d9c0b0c5861b9871c92b7da1 (patch)
treed3dd08ec097489021a698f5faceae90bc207ff25 /doc
parente116842ad9e55d2359d3dfa5e6b1c5ab049860c2 (diff)
parentb22287f00fc10800486510c64139b4fefb38ac4c (diff)
Merge branch 'security-use-untrusted-regexp' into 'master'
Use UntrustedRegexp for CI refs matching See merge request gitlab/gitlabhq!3005
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 9eb694a2c64..f42eb1255de 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -351,6 +351,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]: