mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
consistent currentScore
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
ebfb20c65f
commit
78700f2600
3 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@ check_1_2() {
|
||||||
totalChecks=$((totalChecks + 1))
|
totalChecks=$((totalChecks + 1))
|
||||||
note "$check_1_2"
|
note "$check_1_2"
|
||||||
logjson "1.2" "INFO"
|
logjson "1.2" "INFO"
|
||||||
currentScore=$((currentScore - 0))
|
currentScore=$((currentScore + 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
# 1.3
|
# 1.3
|
||||||
|
@ -47,13 +47,13 @@ check_1_3() {
|
||||||
info " * Using $docker_version, verify is it up to date as deemed necessary"
|
info " * Using $docker_version, verify is it up to date as deemed necessary"
|
||||||
info " * Your operating system vendor may provide support and security maintenance for Docker"
|
info " * Your operating system vendor may provide support and security maintenance for Docker"
|
||||||
logjson "1.3" "INFO"
|
logjson "1.3" "INFO"
|
||||||
currentScore=$((currentScore - 0))
|
currentScore=$((currentScore + 0))
|
||||||
else
|
else
|
||||||
pass "$check_1_3"
|
pass "$check_1_3"
|
||||||
info " * Using $docker_version which is current"
|
info " * Using $docker_version which is current"
|
||||||
info " * Check with your operating system vendor for support and security maintenance for Docker"
|
info " * Check with your operating system vendor for support and security maintenance for Docker"
|
||||||
logjson "1.3" "PASS"
|
logjson "1.3" "PASS"
|
||||||
currentScore=$((currentScore - 0))
|
currentScore=$((currentScore + 0))
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ check_1_4() {
|
||||||
info " * $u"
|
info " * $u"
|
||||||
logjson "1.4" "$u"
|
logjson "1.4" "$u"
|
||||||
done
|
done
|
||||||
currentScore=$((currentScore - 0))
|
currentScore=$((currentScore + 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
# 1.5
|
# 1.5
|
||||||
|
|
|
@ -165,7 +165,7 @@ check_2_6() {
|
||||||
info "$check_2_6"
|
info "$check_2_6"
|
||||||
info " * Docker daemon not listening on TCP"
|
info " * Docker daemon not listening on TCP"
|
||||||
logjson "2.6" "INFO"
|
logjson "2.6" "INFO"
|
||||||
currentScore=$((currentScore +0))
|
currentScore=$((currentScore + 0))
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -471,7 +471,7 @@ check_3_18() {
|
||||||
info "$check_3_18"
|
info "$check_3_18"
|
||||||
info " * File not found"
|
info " * File not found"
|
||||||
logjson "3.18" "INFO"
|
logjson "3.18" "INFO"
|
||||||
currentScore=$((currentScore - 0))
|
currentScore=$((currentScore + 0))
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue