docker-bench-security/tests/99_community_checks.sh
Thomas Sjögren 8fe0b5ea02 add example community check
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
2018-01-17 16:11:04 +01:00

18 lines
365 B
Bash

#!/bin/sh
check_c() {
logit "\n"
info "99 - Community contributed checks"
}
# check_c_1
check_c_1() {
check_c_1="C.1 - This is a example check"
totalChecks=$((totalChecks + 1))
if docker info --format='{{ .Architecture }}' | grep 'x86_64'; then
pass "$check_c_1"
logjson "c.1" "PASS"
else
warn "$check_c_1"
logjson "c.1" "WARN"
fi
}