From 8a16b14c3c2c6110194b0bc1e9de22400a9327b9 Mon Sep 17 00:00:00 2001 From: Jose Raul Barreras <barreras@unl.edu> Date: Thu, 30 May 2019 12:19:01 -0500 Subject: [PATCH] improve output format --- detect-secrets/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect-secrets/entrypoint.sh b/detect-secrets/entrypoint.sh index 921a0a0..1b946b7 100644 --- a/detect-secrets/entrypoint.sh +++ b/detect-secrets/entrypoint.sh @@ -5,7 +5,7 @@ while [ -n "$1" ]; do case "$1" in -s) OUTPUT=`/usr/local/bin/detect-secrets scan` - echo ${OUTPUT} + echo ${OUTPUT} | jq RESULT=`echo ${OUTPUT} | jq '.results | length == 0'` if [ "${RESULT}" = "true" ]; then exit 0 -- GitLab