Improve GitHub vulnerability adding affected version#9457
Improve GitHub vulnerability adding affected version#9457Demaz93 wants to merge 1 commit intoDefectDojo:devfrom
Conversation
Contextual Security AnalysisAs DryRun Security performs checks, we’ll summarize them here. You can always dive into the detailed results in the section below for checks.
Chat with your AI-powered Security Buddy by typing Install and configure more repositories at DryRun Security |
|
Can you implement unittest as it is recommended in https://documentation.defectdojo.com/contributing/how-to-write-a-parser/#unit-tests please? |
|
Theoretically, you are right, In this case, GitHub provides only one vulnerability and inside Defectdojo I'll have one finding with only 1.1.1 or 0.8.2 vulnerable version, which is false because I have two occurrences and I have to fix both. What do you think @coheigea about this edge-case scenario? |
|
Hi @Demaz93 , Colm. |
|
IMO if there isn't a specific finding opened in github then we don't need to cater for this scenario when importing findings. All we are doing is importing findings from GitHub after all. Is there no mention of 0.5.33 at all in the results? |
|
No zero mention of 0.5.33. |

Description
Today component version field in GitHub Vulnerability import is not managed.
This PR will add the vulnerable range for the specific component that could be useful for developers.
Test results
I tested the import from GitHub to defectdojo.
Documentation
Examples inside the documentation already import the vulnerable range but the parser ignored it.
Extra information
Please clear everything below when submitting your pull request, it's here purely for your information.