diff options
author | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-03-26 18:29:09 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-03-26 18:29:09 +0300 |
commit | 71aeb8ebdd2cb34ba460abeb73790505311d32d7 (patch) | |
tree | f19773b7534aa43bc46e0138a8e8095ddef87d09 /doc | |
parent | 9b0fda07bcaa6af765c5858bfeaf8035a49f9470 (diff) | |
parent | c07cf3b6b7c56c2adabe4e2c3aa81a1f8452fb2e (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.md | 13 |
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]: |