mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-07-26 12:37:51 +00:00
Print remediation measures at the end of the logs
This commit is contained in:
parent
9ae0d92b5d
commit
6c586b4e08
11 changed files with 128 additions and 97 deletions
|
@ -109,6 +109,9 @@ beginjson "$version" "$(date +%s)"
|
|||
|
||||
# Load all the tests from tests/ and run them
|
||||
main () {
|
||||
logit "\n${bldylw}Section A - Checks result${txtrsr}"
|
||||
globalRemediation=""
|
||||
|
||||
# Get configuration location
|
||||
get_docker_configuration_file
|
||||
|
||||
|
@ -193,9 +196,12 @@ main () {
|
|||
fi
|
||||
done
|
||||
|
||||
printf "\n"
|
||||
logit "\n\n${bldylw}Section B - Remediation measures${txtrst}"
|
||||
logit "${globalRemediation}"
|
||||
|
||||
logit "\n\n${bldylw}Section C - Score${txtrst}\n"
|
||||
info "Checks: $totalChecks"
|
||||
info "Score: $currentScore"
|
||||
info "Score: $currentScore\n"
|
||||
|
||||
endjson "$totalChecks" "$currentScore" "$(date +%s)"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue