From d1693e0f3d38263d8f7d2658cd8da6a4638a74e7 Mon Sep 17 00:00:00 2001 From: MrSecure Date: Fri, 20 Apr 2018 15:55:51 -0500 Subject: [PATCH] move getWhoami to position where it will run before any checks This restores the AWS account number in the CSV output when running checks or groups. --- prowler | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prowler b/prowler index 79c093b2..02f7f064 100755 --- a/prowler +++ b/prowler @@ -256,6 +256,9 @@ show_all_titles() { done } +# Gather account data / test aws cli connectivity +getWhoami + # Execute single check if called with -c if [[ $CHECK_ID ]];then execute_check $CHECK_ID @@ -285,7 +288,6 @@ if [[ $MODE != "csv" ]]; then prowlerBanner fi -getWhoami genCredReport saveReport execute_all