Commit 26dbbba1 authored by Zach Rice's avatar Zach Rice Committed by Ash McKenzie

Removes extra Secret-Detection job when opening a merge request

parent 7c67e8c7
---
title: Remove extra Secret-Detection job on merge requests
merge_request: 36884
author:
type: fixed
......@@ -31,7 +31,7 @@ secret_detection:
rules:
- if: $SECRET_DETECTION_DISABLED
when: never
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH &&
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH &&
$GITLAB_FEATURES =~ /\bsecret_detection\b/
script:
- 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