From af9620fb9716383ddb5005d42a9bf64a9f4be194 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20OLIVIER?= <cedric3.olivier@orange.com>
Date: Wed, 6 Oct 2021 19:19:36 +0000
Subject: [PATCH] fix: use master or main for production env

---
 templates/gitlab-ci-gitleaks.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/gitlab-ci-gitleaks.yml b/templates/gitlab-ci-gitleaks.yml
index 5892176..a7bfbde 100644
--- a/templates/gitlab-ci-gitleaks.yml
+++ b/templates/gitlab-ci-gitleaks.yml
@@ -20,7 +20,7 @@ variables:
   GITLEAKS_QUICK_DEPTH: "10"
   GITLEAKS_QUICK_ARGS: "--verbose"
   # default production ref name (pattern)
-  PROD_REF: '/^master$/'
+  PROD_REF: '/^(master|main)$/'
   # default integration ref name (pattern)
   INTEG_REF: '/^develop$/'
 
-- 
GitLab