Skip to content

Commit f40a814

Browse files
authored
Compare trivy results cluster_name with None (#10992)
* Compare trivy results cluster_name with None * fix lint
1 parent 74f27d4 commit f40a814

3 files changed

Lines changed: 3698 additions & 1 deletion

File tree

dojo/tools/trivy/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_findings(self, scan_file, test):
9191
if schema_version == 2:
9292
results = data.get("Results", [])
9393
return self.get_result_items(test, results, artifact_name=artifact_name)
94-
elif cluster_name:
94+
elif cluster_name is not None:
9595
findings = []
9696
vulnerabilities = data.get("Vulnerabilities", [])
9797
for service in vulnerabilities:

0 commit comments

Comments
 (0)