container-registry / backstage-plugin-harbor-backend

MIT License
6 stars 17 forks source link

Ensure plugin works when vulnerability scanning is not enabled in Harbor #108

Closed StephenRobin closed 1 year ago

StephenRobin commented 1 year ago

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.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication