chore(): Testing the command directly
This commit is contained in:
parent
1952265a14
commit
1dca3be12d
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue