From 2b73375dbb582847cbf536920f6555cbf6961ea0 Mon Sep 17 00:00:00 2001 From: Aaron Russo Date: Thu, 16 Mar 2023 15:57:12 -0700 Subject: [PATCH] Do not accept empty sensitive strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Romain Tartière --- lib/puppet/functions/gitlab_ci_runner/register_to_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/functions/gitlab_ci_runner/register_to_file.rb b/lib/puppet/functions/gitlab_ci_runner/register_to_file.rb index 2e26ebd..8e48a17 100644 --- a/lib/puppet/functions/gitlab_ci_runner/register_to_file.rb +++ b/lib/puppet/functions/gitlab_ci_runner/register_to_file.rb @@ -25,7 +25,7 @@ dispatch :register_to_file do # We use only core data types because others aren't synced to the agent. param 'String[1]', :url - param 'Variant[String[1], Sensitive[String]]', :regtoken + param 'Variant[String[1], Sensitive[String[1]]]', :regtoken param 'String[1]', :runner_name optional_param 'Hash', :additional_options optional_param 'Optional[String[1]]', :proxy