From 8424b0a6babec4add4fdfd0d17b434ea4128467e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Mon, 23 Oct 2017 15:38:08 +0200 Subject: [PATCH] add check and score info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- docker-bench-security.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docker-bench-security.sh b/docker-bench-security.sh index ce4de2c..c7ef00a 100755 --- a/docker-bench-security.sh +++ b/docker-bench-security.sh @@ -71,6 +71,12 @@ if [ "x$ID" != "x0" ]; then sleep 3 fi +# Total Score +# Warn Scored -1, Pass Scored +1, Not Score -0 + +totalChecks=0 +currentScore=0 + logit "Initializing $(date)\n" beginjson "1.3.4" "$(date +%s)" @@ -94,6 +100,12 @@ main () { . ./"$test" done + printf "\n" + info "Checks: $totalChecks" + info "Score: $currentScore" + integerjson "checks" "$totalChecks" + integerjson "score" "$currentScore" + endjson "$(date +%s)" }