unioslo / harborapi

Python async client for the Harbor REST API v2.0.
https://unioslo.github.io/harborapi/
MIT License
28 stars 5 forks source link

Add `get_artifact_vulnerability_reports` #86

Closed pederhan closed 5 months ago

pederhan commented 5 months ago

This PR adds a new method get_artifact_vulnerability_reports, which deprecates get_artifact_vulnerabilities. The old method was not flexible enough to add support for multiple MIME types without adding a lot of complexity.

The new method always returns a list of MIME types to vulnerability reports, and no longer raises an exception when a MIME type is not found.