ChristofferNissen / helmper

Import Helm Charts to OCI registries, optionally with vulnerability patching
https://christoffernissen.github.io/helmper/
Apache License 2.0
228 stars 9 forks source link

[fix] handle copa error when there are no patchable vulnerabilities #91

Closed logicfox closed 2 months ago

logicfox commented 2 months ago

Copa returns an error if there are no patchable vulnerabilities. This PR handles that error state to stop Helmper from exiting in the middle of a run. Tested with cert-manager cjart v1.15.0 where the patch was failing with the following error:

{"time":"2024-08-21T12:10:15.893513865Z","level":"ERROR","msg":"no patchable vulnerabilities found"}

Additionally, error logging has been improved to add context and an env var config to enable debug logging has been added.