From 819425b3bea419c4e0bd996ab85e2577f08518c1 Mon Sep 17 00:00:00 2001 From: AdamDev Date: Wed, 5 Jul 2023 16:11:43 +0300 Subject: [PATCH] Update checkov/common/sca/output.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Anton GrĂ¼bel --- checkov/common/sca/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkov/common/sca/output.py b/checkov/common/sca/output.py index cfea6639ef5..25073b6df91 100644 --- a/checkov/common/sca/output.py +++ b/checkov/common/sca/output.py @@ -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: