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