We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa49afc commit 5ed8c04Copy full SHA for 5ed8c04
1 file changed
tools/scan-images.sh
@@ -46,12 +46,12 @@ file_prep() {
46
# Gather image lists
47
get_images() {
48
local output_file="$1-scanned-container-images.txt"
49
-
+
50
docker image ls \
51
--filter "reference=ark.stackhpc.com/stackhpc-dev/*:$2*" \
52
--format "{{.Repository}}:{{.Tag}}" \
53
> "$output_file"
54
55
cat "$output_file"
56
}
57
@@ -63,7 +63,7 @@ generate_trivy_ignore() {
63
local image_vulnerabilities
64
image_vulnerabilities=$(yq ."$imagename"'_allowed_vulnerabilities[]' src/kayobe-config/etc/kayobe/trivy/allowed-vulnerabilities.yml 2> /dev/null)
65
66
- touch .trivyignore
+ truncate -s 0 .trivyignore # ensure we start from a clean slate
67
for vulnerability in $global_vulnerabilities; do
68
echo "$vulnerability" >> .trivyignore
69
done
0 commit comments