From 1dca3be12df3d57d61739377ef9cf2da29bb75db Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Sat, 20 Jan 2024 01:11:33 +0100 Subject: [PATCH] chore(): Testing the command directly --- .drone.yml | 3 +-- scripts/trivy.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7e478e4..89cbad7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,8 +41,7 @@ steps: REGISTRY_PASSWORD: from_secret: registry_password commands: - - quick-scan -i scm.project42.io/elia/tricks -t "${DRONE_COMMIT_SHA:0:8}" - + - trivy image --image-src remote --exit-code 0 --username "$REGISTRY_USERNAME" --password "$REGISTRY_PASSWORD" "scm.project42.io/elia/tricks:${DRONE_COMMIT_SHA:0:8}" depends_on: - build diff --git a/scripts/trivy.py b/scripts/trivy.py index b5f04dc..dfc3aca 100644 --- a/scripts/trivy.py +++ b/scripts/trivy.py @@ -90,7 +90,6 @@ class Trivy: cmd = f"{base} {suffix}" if extra_vars: cmd = f"{base} {extra_vars} {suffix}" - print(cmd) cmd_result = subprocess.run(cmd.split(" "), stdout=subprocess.PIPE, stderr=subprocess.PIPE) return cmd_result.stdout.decode("utf-8"), cmd_result.returncode