We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b7409 commit 20dfd7aCopy full SHA for 20dfd7a
tools/scan-images.sh
@@ -45,8 +45,14 @@ file_prep() {
45
46
# Gather image lists
47
get_images() {
48
- docker image ls --filter "reference=ark.stackhpc.com/stackhpc-dev/*:$2*" > $1-scanned-container-images.txt
49
- grep --invert-match --no-filename ^REPOSITORY $1-scanned-container-images.txt | sed 's/ \+/:/g' | cut -f 1,2 -d:
+ local output_file="$1-scanned-container-images.txt"
+
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
58
# Generate ignored vulnerabilities file
0 commit comments