Skip to content

Commit c7432c1

Browse files
🎉 Advance ibm app parser with fix_available (#13663)
* 🎉 Advance ibm app parser with fix_available * fix
1 parent 517c14c commit c7432c1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dojo/tools/ibm_app/parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ def get_findings(self, file, test):
106106
finding.unsaved_vulnerability_ids = [
107107
vulnerability_id,
108108
]
109+
if recommendation_data:
110+
finding.fix_available = True
111+
else:
112+
finding.fix_available = False
109113
finding.unsaved_endpoints = []
110114
dupes[dupe_key] = finding
111115

unittests/tools/test_ibm_app_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ def test_parse_file(self):
2323

2424
finding = findings[1]
2525
self.assertEqual("Info", finding.severity)
26+
self.assertEqual(True, finding.fix_available)

0 commit comments

Comments
 (0)