Added a double grype scan to show the suppressed scans without fail-on

This commit is contained in:
2024-11-26 20:47:29 +01:00
parent 47faba6c9f
commit 4efbe95393

View File

@@ -35,12 +35,16 @@ if [ -n "$INPUT_PLATFORM" ]; then
GRYPE_OPTIONS+=("--platform" "$INPUT_PLATFORM")
fi
GRYPE_OPTIONS+=("registry:${IMAGE_NAME}")
# shellcheck disable=SC2145
echo "Running grype container scanning with options: ${GRYPE_OPTIONS[@]} --show-suppressed"
grype "${GRYPE_OPTIONS[@]}" "--show-suppressed"
if [ -n "$INPUT_FAIL_ON" ]; then
GRYPE_OPTIONS+=("--fail-on" "$INPUT_FAIL_ON")
fi
GRYPE_OPTIONS+=("registry:${IMAGE_NAME}")
# shellcheck disable=SC2145
echo "Running grype container scanning with options: ${GRYPE_OPTIONS[@]}"
grype "${GRYPE_OPTIONS[@]}"