chore(): Adds credentials to trivy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elia el Lazkani 2024-01-20 13:41:23 +01:00
parent d565f4d6b9
commit a26cdcf42e

View file

@ -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