Closed kamroy closed 9 months ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@Vad1mo this PR switches from the harbor+json MIME type to security.vulnerability but the logic is based on the harbor+json MIME type.
This PR would fail. The response for the security.vulnerability does not have the keys like vulnerabilities
.
As I stated in my PR , harbor responds only with the application/vnd.security.vulnerability.report; version=1.1
MIME type. We would have to add the X-Accept-Vulnerabilities
request header to the vulnerabilities fetch
I would suggest to use my PR as it is able to handle both possible MIME types in case harbor decides to deprecate their JSON MIME type. It also uses one fetch rather than two.
thank you for your contribution, it seems like there is now a conflict with the contribution #108 from @StephenRobin. There is also another PR #110 by @locomoco28.
I would greatly appreciate it If you could sort that out, I am happy to accept any working solution.