8 lines
416 B
Bash
8 lines
416 B
Bash
#!/bin/sh
|
|
# Dependency/image vulnerability scan for operator triage; needs Trivy installed.
|
|
set -eu
|
|
command -v trivy >/dev/null || { echo 'Install Trivy (no claim of clean scans)' >&2; exit 2; }
|
|
trivy fs --scanners vuln --severity HIGH,CRITICAL --exit-code 0 .
|
|
trivy image --scanners vuln --severity HIGH,CRITICAL --exit-code 0 mtusi-lab7-app:local
|
|
# Review every result for reachability, fixes, and risk before PR.
|