Commit 9f7a605a authored by Zach Rice's avatar Zach Rice

Update secret detection template to remove fetch on historic scan

Changelog: fixed
parent 6c070b2d
......@@ -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