Skip to content

Commit

Permalink
fix(ecr): handle non-existing findingSeverityCounts key (#4746)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCloudSec authored Aug 16, 2024
1 parent ccb7553 commit 98fc624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prowler/providers/aws/services/ecr/ecr_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _get_image_details(self, regional_client):
)
finding_severity_counts = image[
image_scan_findings_field_name
]["findingSeverityCounts"]
].get("findingSeverityCounts", {})
severity_counts.critical = (
finding_severity_counts.get(
"CRITICAL", 0
Expand Down

0 comments on commit 98fc624

Please sign in to comment.