When vulnerability scanning is not enabled, the JSON returned from Harbor does
not have an addition_links.vulnerabilities object. The plugin assumes this will
exist and returns an error.
Fix this by not populating the vulnerabilities section when this part of the
JSON is absent.
When vulnerability scanning is not enabled, the JSON returned from Harbor does not have an addition_links.vulnerabilities object. The plugin assumes this will exist and returns an error.
Fix this by not populating the vulnerabilities section when this part of the JSON is absent.