-
-
Notifications
You must be signed in to change notification settings - Fork 114
NugetService: Find PackageVulnerabilityInfo from IVulnerabilityInfoResource (Issue 805) #985
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
base: master
Are you sure you want to change the base?
NugetService: Find PackageVulnerabilityInfo from IVulnerabilityInfoResource (Issue 805) #985
Conversation
…ility service mock
|
|
||
| var vulnerabilities = await GetVulnerabilitiesAsync(name, version); | ||
| var vulnerabilityDescriptions = vulnerabilities.OrderBy(v => v.Severity).Select(v => v.ToJson()).ToArray(); | ||
| component.Description = string.Join(',', vulnerabilityDescriptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No appropriate property found for this, please advice as component is in an external package and cant be modified here
Signed-off-by: MTsfoni <mibau89@gmail.com>
…getServiceDTO - this decouples the library and the nugetService Signed-off-by: MTsfoni <mibau89@gmail.com>
|
@LarsPellarin Cool that you took on that feature! The Class from the CycloneDX-library shouldn't be used in the NugetService imo. I think it still needs to use more fields of the Vulnerability and probably testing (log4net is a classic here, oracle adapter also has vulnerabilities). Let me know if you still want to on, otherwise I will finish it in the coming days. |
|
Thanks for feedback! Agree on the DTO refactor. Feel free to finish this, i will not have time the next couple of days myself. |
NugetService: Add support to find PackageVulnerabilityInfo from IVulnerabilityInfoResource.
Reduce code duplication in test and make it easier to inject vulnerability service mock.
Refactor to inject source repository from factory.