diff options
author | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-04-02 07:48:24 +0000 |
---|---|---|
committer | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-04-02 07:48:24 +0000 |
commit | 3098259e90616c86d9c0b0c5861b9871c92b7da1 (patch) | |
tree | d3dd08ec097489021a698f5faceae90bc207ff25 /doc | |
parent | e116842ad9e55d2359d3dfa5e6b1c5ab049860c2 (diff) | |
parent | b22287f00fc10800486510c64139b4fefb38ac4c (diff) | |
download | gitlab-ce-3098259e90616c86d9c0b0c5861b9871c92b7da1.tar.gz |
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.md | 13 |
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]: |