From caba166e509953873777cb59a57869e37c61ca54 Mon Sep 17 00:00:00 2001 From: Simon Lepel Date: Tue, 30 May 2023 11:12:35 +0200 Subject: [PATCH] fix masking empty secret --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 4fe97ec..cf045fd 100644 --- a/action.yml +++ b/action.yml @@ -58,10 +58,10 @@ runs: id: github-auth shell: bash run: | - echo "::add-mask::${{ inputs.github_com_pat }}" if [[ "${{ inputs.github_com_pat }}" = "" ]]; then pat="" else + echo "::add-mask::${{ inputs.github_com_pat }}" pat="${{ inputs.github_com_pat }}@" fi echo "::set-output name=pat::$pat"