Repository navigation
Snyk parser enhancements - #3616
Conversation
|
Hi, Can you provide sample scans for these new features? Can you set |
Hi @valentijnscholten , I have generated two sample files you can find it here What do you mean by set Regards. |
|
I meant can you extend the unit tests to use samples with the new features. And sorry, didn't notice that component_name/version are already set correctly :-) |
Hi @valentijnscholten, Regards, |
damiencarol
left a comment
There was a problem hiding this comment.
Avoid adding HTML formatting in Finding attributes. If you want to have some formatting use Markdown syntax.
damiencarol
left a comment
There was a problem hiding this comment.
There is one last thing that could be done.
cwe attribute of findings are integer. depending on the data the parser return an integer or a string.
Could you improve a little bit your pull request to manage this?
Some conversion in integer is required in this part I think:
https://github.com/DefectDojo/django-DefectDojo/blob/master/dojo/tools/snyk/parser.py#L65-L73
Hi @damiencarol , Made a refactor for the CWE parsing addressing the following points:
Regards |
* Snyk parser: Added support for multi module reports (--all-projects) * Snyk parser: Added missing Finding fields and minor visual changes. * Snyk parser: [Bugfix] unique_id var can generate duplications * Snyk parser: [Bugfix] fixed cvss ranges to meet CVSS3.x severity according to NVD * Snyk parser: Removed HTML tags * Snyk parser: CWE parsing refactor
This PR addresses the following features:
Support for Snyk JSON reports generated with the --all-projects (e.g: Maven multi module projects).
Added the following missing fields for each Finding generated from a report:
Minor visual changes:
TODO: