Skip to content
Snippets Groups Projects
Commit 36cc9e93 authored by Raul Barreras's avatar Raul Barreras
Browse files

Update detect-secrets/entrypoint.sh

parent a0e3a90b
No related branches found
No related tags found
1 merge request!39WIP: Resolve "detect-secrets does not detect secrets in subdirectories"
......@@ -23,7 +23,7 @@ while [ -n "$1" ]; do
done
if [ ${OPT} = "scan" ]; then
OUTPUT=`/usr/local/bin/detect-secrets scan --base64-limit ${ENTROPY}`
OUTPUT=`/usr/local/bin/detect-secrets scan --base64-limit ${ENTROPY} ./*`
echo ${OUTPUT} | jq
RESULT=`echo ${OUTPUT} | jq '.results | length == 0'`
if [ "${RESULT}" = "true" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment