mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-12 14:34:16 +00:00
Trivy's remote source cannot authenticate against Docker Hub (and some other registries) even after docker login. This adds a docker login + docker pull flow before scanning so Trivy can access private images from the local Docker daemon. - Add _docker_login, _docker_pull, _docker_logout, cleanup methods - Add _extract_registry to determine registry from image reference - Wrap run() in try/finally to ensure cleanup on success or error - Wire registry credentials from CLI args to ImageProvider - Add ImageDockerLoginError and ImageDockerNotFoundError exceptions