mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
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.
This commit is contained in:
4
prowler
4
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
|
||||
|
||||
Reference in New Issue
Block a user