Adding only fixed option

This commit is contained in:
2025-04-14 07:47:39 +02:00
parent 6e9c97d981
commit fdb4a7fc24
2 changed files with 9 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ INPUT_IMAGE_PREFIX=$imagePrefix
INPUT_CONFIG_PATH=$config
INPUT_PLATFORM=$platform
INPUT_FAIL_ON=$failOn
INPUT_ONLY_FIXED=$onlyFixed
set -e
@@ -25,6 +26,10 @@ fi;
GRYPE_OPTIONS=("-v" "--by-cve" "--show-suppressed")
if [ "$INPUT_ONLY_FIXED" == "true" ]; then
GRYPE_OPTIONS+=("--only-fixed")
fi
if [ -n "$INPUT_CONFIG_PATH" ] && [ -f "$INPUT_CONFIG_PATH" ]; then
GRYPE_OPTIONS+=("--config" "$INPUT_CONFIG_PATH")
fi