@@ -67,6 +67,7 @@ def ingest_findings(self, components, securities, sources, test):
6767 description = self .license_description (component , source )
6868 severity = "High"
6969 mitigation = self .license_mitigation (component )
70+ fix_available = bool (mitigation )
7071 impact = "N/A"
7172 references = self .license_references (component )
7273 finding = Finding (
@@ -79,6 +80,7 @@ def ingest_findings(self, components, securities, sources, test):
7980 references = references ,
8081 static_finding = True ,
8182 unique_id_from_tool = component_id ,
83+ fix_available = fix_available ,
8284 )
8385 license_risk .append (finding )
8486 elif "None" not in self .license_severity (component ):
@@ -88,6 +90,7 @@ def ingest_findings(self, components, securities, sources, test):
8890 description = self .license_description (component , source )
8991 severity = self .license_severity (component )
9092 mitigation = self .license_mitigation (component , violation = False )
93+ fix_available = bool (mitigation )
9194 impact = "N/A"
9295 references = self .license_references (component )
9396 finding = Finding (
@@ -100,6 +103,7 @@ def ingest_findings(self, components, securities, sources, test):
100103 references = references ,
101104 static_finding = True ,
102105 unique_id_from_tool = component_id ,
106+ fix_available = fix_available ,
103107 )
104108 license_risk .append (finding )
105109 items .extend (license_risk )
@@ -111,10 +115,10 @@ def ingest_findings(self, components, securities, sources, test):
111115 description = self .security_description (vulns )
112116 severity = self .security_severity (vulns )
113117 mitigation = self .security_mitigation (vulns )
118+ fix_available = bool (mitigation )
114119 impact = self .security_impact (vulns )
115120 references = self .security_references (vulns )
116121 file_path = self .security_filepath (vulns )
117-
118122 finding = Finding (
119123 title = title ,
120124 test = test ,
@@ -126,6 +130,7 @@ def ingest_findings(self, components, securities, sources, test):
126130 static_finding = True ,
127131 file_path = file_path ,
128132 unique_id_from_tool = component_id ,
133+ fix_available = fix_available ,
129134 )
130135 security_risk .append (finding )
131136 items .extend (security_risk )
0 commit comments