mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-31 06:22:32 +01:00
add example community check
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
ed73b3728f
commit
8fe0b5ea02
1 changed files with 18 additions and 0 deletions
18
tests/99_community_checks.sh
Normal file
18
tests/99_community_checks.sh
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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
|
||||||
|
}
|
Loading…
Reference in a new issue