Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Mend Platform API 3.0 file types to existing Mend parser #11259

Merged
merged 64 commits into from
Nov 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
716f94a
Add new Mend Platform API 3.0 parser
testaccount90009 Nov 14, 2024
b2fe0b8
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
7e8a2fd
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
82e46ee
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
4f45fa6
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
2eec598
Update parser.py
testaccount90009 Nov 14, 2024
4cd5bb3
Update parser.py
testaccount90009 Nov 14, 2024
6faf27f
add component path as file_path
testaccount90009 Nov 14, 2024
5d6de56
updated parser
testaccount90009 Nov 14, 2024
0cbce00
Update parser.py
testaccount90009 Nov 14, 2024
2127d81
Update parser.py
testaccount90009 Nov 14, 2024
f1aa0ec
refactor
testaccount90009 Nov 14, 2024
bdc721a
Update parser.py
testaccount90009 Nov 14, 2024
fd76af6
Update parser.py
testaccount90009 Nov 14, 2024
9f3d41e
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
726f8c3
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
3977cd9
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
66d00c5
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
9605700
Update test_mend_platform_api3_parser.py
testaccount90009 Nov 14, 2024
8003d1f
Update parser.py
testaccount90009 Nov 14, 2024
e2911e2
change single quotes to double quotes - reformat broken json
testaccount90009 Nov 14, 2024
1e2cc67
Try to refactor to harden Mend parser instead of creating additional …
testaccount90009 Nov 14, 2024
bf8f9ce
Update parser.py
testaccount90009 Nov 14, 2024
f119ef7
Merge branch 'DefectDojo:dev' into dev
testaccount90009 Nov 14, 2024
64eaa50
adding author update
testaccount90009 Nov 14, 2024
5a9f279
Update parser.py
testaccount90009 Nov 14, 2024
52776b1
Add elif for "component" in content for list of Findings
testaccount90009 Nov 14, 2024
b97c5da
Update parser.py
testaccount90009 Nov 14, 2024
0acd9ee
Update parser.py
testaccount90009 Nov 14, 2024
6451542
Update parser.py
testaccount90009 Nov 14, 2024
132ec4d
Update parser.py
testaccount90009 Nov 14, 2024
7b33df5
Update parser.py
testaccount90009 Nov 14, 2024
e52d08c
Update parser.py
testaccount90009 Nov 14, 2024
2272d46
preserve the original else statement for grabbing severity
testaccount90009 Nov 14, 2024
45e723a
update parser to capture component_node array
testaccount90009 Nov 14, 2024
79d56b8
Update parser.py
testaccount90009 Nov 14, 2024
ee24c36
change how vulnerability description is retrieved
testaccount90009 Nov 14, 2024
1b1b242
Update parser.py
testaccount90009 Nov 14, 2024
b661790
Update parser.py
testaccount90009 Nov 14, 2024
2744a5f
updating vuln count
testaccount90009 Nov 14, 2024
b48a356
Update parser.py
testaccount90009 Nov 14, 2024
9313c2f
Update parser.py
testaccount90009 Nov 14, 2024
9313a86
Update parser.py
testaccount90009 Nov 14, 2024
f137019
Update parser.py
testaccount90009 Nov 14, 2024
c9477f9
Update parser.py
testaccount90009 Nov 14, 2024
503b7a1
Update parser.py
testaccount90009 Nov 14, 2024
f489b0e
Update parser.py
testaccount90009 Nov 14, 2024
6538d8a
Update parser.py
testaccount90009 Nov 14, 2024
d4f162f
Update parser.py
testaccount90009 Nov 14, 2024
29e8dd7
Update parser.py
testaccount90009 Nov 15, 2024
ba9dc02
Merge branch 'DefectDojo:dev' into dev
testaccount90009 Nov 15, 2024
b7c9d3d
Update parser.py
testaccount90009 Nov 18, 2024
75d9e7d
Merge branch 'DefectDojo:dev' into dev
testaccount90009 Nov 18, 2024
7404f44
Merge branch 'DefectDojo:dev' into dev
testaccount90009 Nov 18, 2024
9bd5f03
Merge branch 'DefectDojo:dev' into dev
testaccount90009 Nov 18, 2024
a705a5b
Fix spacing and formatting for easier readability
testaccount90009 Nov 18, 2024
8a396a3
Merge branch 'dev' of https://github.com/testaccount90009/django-Defe…
testaccount90009 Nov 18, 2024
a6c2db3
Rework Mitigation field - slight adjustment in formatting and edited …
testaccount90009 Nov 18, 2024
9e8f540
Fix comma and indents
testaccount90009 Nov 18, 2024
aeabdd4
Fix typo
testaccount90009 Nov 18, 2024
6202162
fix commas
testaccount90009 Nov 18, 2024
d221e3c
fix spacing
testaccount90009 Nov 18, 2024
a4b14f3
fix spacing for readability
testaccount90009 Nov 18, 2024
d2a612d
Merge branch 'DefectDojo:dev' into dev
testaccount90009 Nov 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update parser.py
  • Loading branch information
testaccount90009 committed Nov 14, 2024
commit 6451542dce5a7abfe486116f5497d9fe29455cf3
2 changes: 1 addition & 1 deletion dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
@@ -197,7 +197,7 @@ def _build_common_output(node, lib_name=None):
tree_node = content["vulnerabilities"]
for node in tree_node:
findings.append(_build_common_output(node))

elif "component" in content:
# likely a Mend Platform or 3.0 API SCA output - "library" is replaced as "component"
tree_node = content["response"]
Loading