Skip to content

Commit

Permalink
fix masking empty secret
Browse files Browse the repository at this point in the history
  • Loading branch information
simbo committed May 30, 2023
1 parent b0a684b commit caba166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit caba166

Please sign in to comment.