mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
74ce99f5ff
Signed-off-by: Brian Downs <brian.downs@gmail.com>
20 lines
286 B
Bash
Executable File
20 lines
286 B
Bash
Executable File
#/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ -n ${DEBUG} ]; then
|
|
set -x
|
|
fi
|
|
|
|
if [ -z $1 ]; then
|
|
echo "error: image name required as argument. exiting..."
|
|
exit 1
|
|
fi
|
|
|
|
IMAGE=$1
|
|
SEVERITIES="HIGH,CRITICAL"
|
|
|
|
trivy --quiet image --severity ${SEVERITIES} --no-progress --ignore-unfixed ${IMAGE}
|
|
|
|
exit 0
|