Commit 36acf0ef authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'allow-merge-commits-secret-detection' into 'master'

Allow merge commits for SD

See merge request gitlab-org/gitlab!82546
parents 35b243ca ce04cea1
...@@ -51,7 +51,7 @@ secret_detection: ...@@ -51,7 +51,7 @@ secret_detection:
else else
# determine commit range so that we can fetch the appropriate depth # determine commit range so that we can fetch the appropriate depth
# check the exit code to determine if we need to limit the commit_list.txt to CI_COMMIT_SHA. # check the exit code to determine if we need to limit the commit_list.txt to CI_COMMIT_SHA.
if ! git log --no-merges --pretty=format:"%H" ${CI_COMMIT_BEFORE_SHA}..${CI_COMMIT_SHA} >${CI_COMMIT_SHA}_commit_list.txt; if ! git log --pretty=format:"%H" ${CI_COMMIT_BEFORE_SHA}..${CI_COMMIT_SHA} >${CI_COMMIT_SHA}_commit_list.txt;
then then
echo "unable to determine commit range, limiting to ${CI_COMMIT_SHA}" echo "unable to determine commit range, limiting to ${CI_COMMIT_SHA}"
echo ${CI_COMMIT_SHA} >${CI_COMMIT_SHA}_commit_list.txt echo ${CI_COMMIT_SHA} >${CI_COMMIT_SHA}_commit_list.txt
......
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