Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Mend Platform API 3.0 file types to existing Mend parser (#11259
) * Add new Mend Platform API 3.0 parser Existing Mend parser is for 1.0 or 2.0 and Unified Agent based 'legacy' vulnerabilities schema, whereas a new Mend Platform and API 3.0 has changed this structure, requiring a need for a new parser. This is for SCA only at the moment. * Update test_mend_platform_api3_parser.py * Update test_mend_platform_api3_parser.py * Update test_mend_platform_api3_parser.py * Update test_mend_platform_api3_parser.py * Update parser.py * Update parser.py * add component path as file_path This is mainly for SCA anyways - SAST contains a different set of vulns and I can write that parser to differentiate SAST vs SCA. * updated parser * Update parser.py * Update parser.py * refactor * Update parser.py * Update parser.py * Update test_mend_platform_api3_parser.py * Update test_mend_platform_api3_parser.py * Update test_mend_platform_api3_parser.py * Update test_mend_platform_api3_parser.py * Update test_mend_platform_api3_parser.py * Update parser.py * change single quotes to double quotes - reformat broken json * Try to refactor to harden Mend parser instead of creating additional parser * Update parser.py * adding author update * Update parser.py * Add elif for "component" in content for list of Findings "vulnerabilities" is replaced with "response" since it is an API 3.0 Platform call to retrieve a project SCA dependency vulns. Furthermore, "libraries" is replaced with "component" in the updated 3.0 Platform output * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * preserve the original else statement for grabbing severity * update parser to capture component_node array * Update parser.py * change how vulnerability description is retrieved * Update parser.py * Update parser.py * updating vuln count * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Update parser.py * Fix spacing and formatting for easier readability * Rework Mitigation field - slight adjustment in formatting and edited for readability * Fix comma and indents * Fix typo * fix commas * fix spacing * fix spacing for readability
- Loading branch information