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:
Andoni A. committed 2026-02-19 17:15:03 +01:00
1 parent ce6d94a32c
commit 30533d9a29
1 file changed
+3 -3
+3 -3
View File
@@ -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,