Files

11 lines
443 B
Bash

#!/usr/bin/env sh
set -eu
if command -v trivy >/dev/null 2>&1; then
trivy image --timeout 15m --severity HIGH,CRITICAL --ignore-unfixed --format table messenger-api:lab7
exit $?
fi
# Docker Desktop can run the scanner without installing it on the host.
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
aquasec/trivy:0.58.1 image --timeout 15m --severity HIGH,CRITICAL --ignore-unfixed \
--format table messenger-api:lab7