Skip to content

Commit

Permalink
Update checkov/common/sca/output.py
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Grübel <[email protected]>
  • Loading branch information
AdamDev and gruebel committed Jul 5, 2023
1 parent 350b3e3 commit 819425b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkov/common/sca/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def apply_cves_inline_suppressions(
"""Applies the inline suppression and returns an accomplish status"""

if inline_suppressions_maps:
if inline_suppressions_maps.get("cve_by_cve_map") and record.vulnerability_details:
if record.vulnerability_details and inline_suppressions_maps.get("cve_by_cve_map"):
cve_id = record.vulnerability_details.get("id", "")
cve_suppression = inline_suppressions_maps["cve_by_cve_map"].get(cve_id)
if cve_suppression:
Expand Down

0 comments on commit 819425b

Please sign in to comment.