Merge commit from fork

This commit is contained in:
DmitriyLewen
2026-02-13 01:41:16 +06:00
committed by GitHub
parent 5eb7ef2605
commit bc61dc5570
+3 -2
View File
@@ -183,9 +183,10 @@ runs:
local input_value="$2"
local default_value="$3"
if [ ! -z "$input_value" ] && [ "$input_value" != "$default_value" ]; then
if [ -n "$input_value" ] && [ "$input_value" != "$default_value" ]; then
# If action was provided with explicit input by the caller set that
echo "export $var_name=$input_value" >> trivy_envs.txt
# Use printf %q to safely escape special characters and prevent command injection
printf 'export %s=%q\n' "$var_name" "$input_value" >> trivy_envs.txt
fi
}