Files
mtusi2026lab7/scripts/scan.sh
T
HellsTomatoandCopilot 2ef0299e34
Skeleton contracts / contracts (pull_request) Canceled after 0s
Complete lab7 grade 4 implementation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-06 15:35:53 +03:00

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