From a26cdcf42e79fd822c45089c1d01eddb2363d649 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Sat, 20 Jan 2024 13:41:23 +0100 Subject: [PATCH] chore(): Adds credentials to trivy --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b9526f5..cc21745 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,7 +31,7 @@ steps: REGISTRY_PASSWORD: from_secret: registry_password commands: - - trivy image --image-src remote --exit-code 0 "scm.project42.io/elia/nikola:${DRONE_COMMIT_SHA:0:8}" + - trivy image --image-src remote --username "$REGISTRY_USERNAME" --password "$REGISTRY_PASSWORD" --exit-code 0 "scm.project42.io/elia/nikola:${DRONE_COMMIT_SHA:0:8}" depends_on: - build-container