Commit cdd75353 authored by Matija Čupić's avatar Matija Čupić

Merge branch 'zrice-master-patch-44825' into 'master'

Update secret detection template to remove fetch on historic scan

See merge request gitlab-org/gitlab!84179
parents 91177802 9f7a605a
......@@ -31,14 +31,7 @@ secret_detection:
script:
- if [ -n "$CI_COMMIT_TAG" ]; then echo "Skipping Secret Detection for tags. No code changes have occurred."; exit 0; fi
# Historic scan
- |
if [ "$SECRET_DETECTION_HISTORIC_SCAN" == "true" ]
then
echo "historic scan"
git fetch --unshallow origin $CI_COMMIT_REF_NAME
/analyzer run
exit
fi
- if [ "$SECRET_DETECTION_HISTORIC_SCAN" == "true" ]; then echo "Running Secret Detection Historic Scan"; /analyzer run; exit; fi
# Default branch scan
- if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then echo "Running Secret Detection on default branch."; /analyzer run; exit; fi
# Push event
......
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