Commit be8396d6 authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'secret-detection-remove-extra-job' into 'master'

Removes extra Secret-Detection job when opening a merge request

See merge request gitlab-org/gitlab!36884
parents f9a17865 26dbbba1
---
title: Remove extra Secret-Detection job on merge requests
merge_request: 36884
author:
type: fixed
...@@ -31,7 +31,7 @@ secret_detection: ...@@ -31,7 +31,7 @@ secret_detection:
rules: rules:
- if: $SECRET_DETECTION_DISABLED - if: $SECRET_DETECTION_DISABLED
when: never when: never
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && - if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH &&
$GITLAB_FEATURES =~ /\bsecret_detection\b/ $GITLAB_FEATURES =~ /\bsecret_detection\b/
script: script:
- git fetch origin $CI_DEFAULT_BRANCH $CI_BUILD_REF_NAME - git fetch origin $CI_DEFAULT_BRANCH $CI_BUILD_REF_NAME
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment