@@ -20,6 +20,7 @@ def get_findings(self, file, test):
2020 for vulnerability in data :
2121 description = ""
2222 mitigation = ""
23+ impact = ""
2324 confidence = vulnerability .get ("confidence" , None )
2425 affected_asset = vulnerability .get ("affected_asset" , None )
2526 package = vulnerability .get ("package" , None )
@@ -82,7 +83,7 @@ def get_findings(self, file, test):
8283 description += "**tech_owners:** " + str (tech_owners ) + "\n "
8384 if teams and teams is not None :
8485 description += "**teams:** " + str (teams ) + "\n "
85- if potential_threat and potential_impact is not None :
86+ if potential_threat and potential_threat is not None :
8687 description += "**potential_threat:** " + str (potential_threat ) + "\n "
8788 if attacker_interest is not None and not "None" :
8889 description += "**attacker_interest:** " + str (attacker_interest ) + "\n "
@@ -147,7 +148,7 @@ def get_findings(self, file, test):
147148 if remediation_steps is not None :
148149 mitigation += "**remediation_steps:** " + str ("\n " .join (remediation_steps )) + "\n "
149150 if potential_impact and potential_impact is not None :
150- description + = "**potential_impact:** " + str (", " .join (potential_impact )) + "\n "
151+ impact = "**potential_impact:** " + str (", " .join (potential_impact )) + "\n "
151152 finding = Finding (
152153 title = title ,
153154 test = test ,
@@ -157,6 +158,7 @@ def get_findings(self, file, test):
157158 date = datetime .strptime (first_detected , "%Y-%m-%dT%H:%M:%S.%fZ" ).strftime ("%Y-%m-%d" ),
158159 dynamic_finding = True ,
159160 mitigation = mitigation ,
161+ impact = impact ,
160162 )
161163 if cve_ids and cve_ids is not None :
162164 finding .unsaved_vulnerability_ids = []
0 commit comments