fix(allowlist): allowlist file default value (#1425)

Co-authored-by: sergargar <sergio@verica.io>
This commit is contained in:
Nacho Rivera
2022-10-24 09:29:24 +02:00
committed by GitHub
parent e77486f771
commit 2d86254549
4 changed files with 30 additions and 17 deletions

View File

@@ -47,14 +47,15 @@ def report(check_findings, output_options, audit_info):
if check_findings:
for finding in check_findings:
# Check if finding is allowlisted
if is_allowlisted(
output_options.allowlist_file,
audit_info.audited_account,
finding.check_metadata.CheckID,
finding.region,
finding.resource_id,
):
finding.status = "WARNING"
if output_options.allowlist_file:
if is_allowlisted(
output_options.allowlist_file,
audit_info.audited_account,
finding.check_metadata.CheckID,
finding.region,
finding.resource_id,
):
finding.status = "WARNING"
# Print findings by stdout
color = set_report_color(finding.status)
if output_options.is_quiet and "FAIL" in finding.status: