From ada01c5d319e6fd43845e25d18f9411a3804316b Mon Sep 17 00:00:00 2001 From: Omar Santos Date: Sun, 11 Apr 2021 19:51:03 -0400 Subject: [PATCH] Update run_cis_bench_locally.sh --- .../docker/run_cis_bench_locally.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker-and-k8s-security/docker/run_cis_bench_locally.sh b/docker-and-k8s-security/docker/run_cis_bench_locally.sh index 18fe505..a4eac1b 100644 --- a/docker-and-k8s-security/docker/run_cis_bench_locally.sh +++ b/docker-and-k8s-security/docker/run_cis_bench_locally.sh @@ -14,4 +14,14 @@ echo "${reset}=========================" curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -P inspec echo "${red} Running CIS Docker Benchmark ${reset} locally on $(hostname)" -inspec exec https://github.com/dev-sec/cis-docker-benchmark \ No newline at end of file +inspec exec https://github.com/dev-sec/cis-docker-benchmark > cis_benchmark_results.txt + + + +printf -- '\n'; +echo "${red}REPORT SUMMARY:" +tail -n 2 cis_benchmark_results.txt + +printf -- '\n'; +echo "${reset}The complete results have been stored at: +${green}$(pwd)/cis_benchmark_results.txt " \ No newline at end of file