Repository navigation
Improve GitLab dependency scanning parser - #3786
Conversation
Improve GitLab dependency scanning parser, adding component name and version for the findings. Removed SAST components, since they are not present in this kind of report.
valentijnscholten
left a comment
There was a problem hiding this comment.
thanks. can you add some checks to make the parser not raise an expcetion if these fields aren't present in the report?
|
Thanks for the quick feedback @valentijnscholten . |
|
also as you are adding more data to findings, could you add more checks in the unit tests on these attributes? |
Yes. Everytime I agree not to add any checks, the parser has failed 3 weeks later and the PR author was gone and we had to deal with the slack support, github issues, bugfix PRs etc. The parsers should really be made fool proof otherwise we can't keep up. |
Add checks in case the fields are missing in the report.
|
@valentijnscholten Can you please reopen the PR? |
|
@macedogm I didn't mean to close it, sorry. Must have misclicked or something. Sorry! |
Add unit test for GitLab Dependency Scanning report without component fields in 'vulnerabilities' - package 'name' and 'version‘.
Add unit test for GitLab Dependency Scanning report without component fields in 'vulnerabilities' - package 'name' and 'version‘.
|
No worries @valentijnscholten and thanks for reopening the PR. Additionally, could you also review the PRs DefectDojo/Documentation#173 and DefectDojo/sample-scan-files#69 to update the documentation regarding the new integration and to add the sample scan files, respectively, please? |
|
thanks for the PR, just one more approval needed.... |
…r GitLab dependency scanning
…r GitLab dependency scanning
* Improve GitLab dependency scanning parser, adding component name and version for the findings. * Removed SAST components, since they are not present in this kind of report.
Current findings from GitLab dependency scanning have this structure:

Now they will appear as:
