mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Fix: when prowler exits with a non-zero status, the remainder of the block is not executed (#1015)
* Fix: when prowler exits with a non-zero status, the remainder of the block is not executed * Fix: do not trigger exit code 3 on failed checks, so that the remainder of the block is executed
This commit is contained in:
@@ -93,7 +93,7 @@ for accountId in $ACCOUNTS_IN_ORGS; do
|
|||||||
# Run Prowler
|
# Run Prowler
|
||||||
echo -e "Assessing AWS Account: $accountId, using Role: $ROLE on $(date)"
|
echo -e "Assessing AWS Account: $accountId, using Role: $ROLE on $(date)"
|
||||||
# remove -g cislevel for a full report and add other formats if needed
|
# remove -g cislevel for a full report and add other formats if needed
|
||||||
./prowler/prowler -R "$ROLE" -A "$accountId" -g cislevel1 -M $FORMAT
|
./prowler/prowler -R "$ROLE" -A "$accountId" -g cislevel1 -M $FORMAT -z
|
||||||
echo "Report stored locally at: prowler/output/ directory"
|
echo "Report stored locally at: prowler/output/ directory"
|
||||||
TOTAL_SEC=$((SECONDS - START_TIME))
|
TOTAL_SEC=$((SECONDS - START_TIME))
|
||||||
echo -e "Completed AWS Account: $accountId, using Role: $ROLE on $(date)"
|
echo -e "Completed AWS Account: $accountId, using Role: $ROLE on $(date)"
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ for accountId in $ACCOUNTS_IN_ORGS; do
|
|||||||
# Run Prowler
|
# Run Prowler
|
||||||
echo -e "Assessing AWS Account: $accountId, using Role: $ROLE on $(date)"
|
echo -e "Assessing AWS Account: $accountId, using Role: $ROLE on $(date)"
|
||||||
# remove -g cislevel for a full report and add other formats if needed
|
# remove -g cislevel for a full report and add other formats if needed
|
||||||
./prowler/prowler -R "$ROLE" -A "$accountId" -g cislevel1 -M html
|
./prowler/prowler -R "$ROLE" -A "$accountId" -g cislevel1 -M html -z
|
||||||
echo "Report stored locally at: prowler/output/ directory"
|
echo "Report stored locally at: prowler/output/ directory"
|
||||||
TOTAL_SEC=$((SECONDS - START_TIME))
|
TOTAL_SEC=$((SECONDS - START_TIME))
|
||||||
echo -e "Completed AWS Account: $accountId, using Role: $ROLE on $(date)"
|
echo -e "Completed AWS Account: $accountId, using Role: $ROLE on $(date)"
|
||||||
|
|||||||
Reference in New Issue
Block a user