From ff2d8dedf9b3d0d3fbd8fba8dd9a5c2948e50d3b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:09:12 -0400 Subject: [PATCH] report-missing-inputs: treat empty inputs as unset (#6) Note that missing secrets are a common case of empty inputs --- scripts/report-missing-inputs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/report-missing-inputs.pl b/scripts/report-missing-inputs.pl index 3d4e73a..5e26649 100755 --- a/scripts/report-missing-inputs.pl +++ b/scripts/report-missing-inputs.pl @@ -31,7 +31,7 @@ sub get_from_json_env { if (/^ (\S+):/) { $key = $1; } elsif (/^ required: true/) { - push @required, $key unless %inputs && defined $inputs{$key}; + push @required, $key unless %inputs && defined $inputs{$key} && $inputs{key} =~ /./; } } }