Skip to content

Commit

Permalink
fix(credential_report): Do not generate for 117 and 118 (prowler-clou…
Browse files Browse the repository at this point in the history
  • Loading branch information
jfagoagas authored Aug 5, 2022
1 parent 1e422f2 commit 1f8a4c1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/execute_check
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,14 @@ execute_check() {
ignores="$(awk "/${1}/{print}" <(echo "${ALLOWLIST}"))"

if [ ${alternate_name} ];then
if [[ ${alternate_name} == check1* || ${alternate_name} == extra71 || ${alternate_name} == extra774 || ${alternate_name} == extra7123 ]];then
if [ ! -s $TEMP_REPORT_FILE ];then
genCredReport
saveReport
# Credential Report is not required for checks check17 and check118
if [[ ${alternate_name} != check117 && ${alternate_name} != check118 ]]
then
if [[ ${alternate_name} == check1* || ${alternate_name} == extra71 || ${alternate_name} == extra774 || ${alternate_name} == extra7123 ]];then
if [ ! -s $TEMP_REPORT_FILE ];then
genCredReport
saveReport
fi
fi
fi
show_check_title ${alternate_name}
Expand Down

0 comments on commit 1f8a4c1

Please sign in to comment.