mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
add check and score info
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
ad045075eb
commit
8424b0a6ba
1 changed files with 12 additions and 0 deletions
|
@ -71,6 +71,12 @@ if [ "x$ID" != "x0" ]; then
|
||||||
sleep 3
|
sleep 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Total Score
|
||||||
|
# Warn Scored -1, Pass Scored +1, Not Score -0
|
||||||
|
|
||||||
|
totalChecks=0
|
||||||
|
currentScore=0
|
||||||
|
|
||||||
logit "Initializing $(date)\n"
|
logit "Initializing $(date)\n"
|
||||||
beginjson "1.3.4" "$(date +%s)"
|
beginjson "1.3.4" "$(date +%s)"
|
||||||
|
|
||||||
|
@ -94,6 +100,12 @@ main () {
|
||||||
. ./"$test"
|
. ./"$test"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
printf "\n"
|
||||||
|
info "Checks: $totalChecks"
|
||||||
|
info "Score: $currentScore"
|
||||||
|
integerjson "checks" "$totalChecks"
|
||||||
|
integerjson "score" "$currentScore"
|
||||||
|
|
||||||
endjson "$(date +%s)"
|
endjson "$(date +%s)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue