debug(): Debugging pipeline for failures
Some checks reported errors
continuous-integration/drone/promote/production Build was killed
continuous-integration/drone/push Build is failing

This commit is contained in:
Elia el Lazkani 2024-01-20 00:55:47 +01:00
parent 72a413bd45
commit 1952265a14

View file

@ -90,6 +90,7 @@ 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