mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-18 17:34:17 +00:00
fix(sdk): use scanners none for Image provider connection test
- Replace --skip-db-update with --scanners none in test_connection - Avoids Trivy fatal error when vulnerability DB is not yet downloaded
This commit is contained in:
1 file changed
+3
-3
@@ -929,13 +929,13 @@ class ImageProvider(Provider):
|
||||
elif registry_token:
|
||||
env["TRIVY_REGISTRY_TOKEN"] = registry_token
|
||||
|
||||
# Test by running trivy with --skip-update to just test image access
|
||||
# Test by pulling image metadata without scanning (no DB required)
|
||||
process = subprocess.run(
|
||||
[
|
||||
"trivy",
|
||||
"image",
|
||||
"--skip-db-update",
|
||||
"--download-db-only=false",
|
||||
"--scanners",
|
||||
"none",
|
||||
image,
|
||||
],
|
||||
capture_output=True,
|
||||
|
||||
Reference in new issue
Block a user