Skip to content

Commit 788c16f

Browse files
committed
fix(tests): escape gitref in action
Signed-off-by: spbsoluble <[email protected]>
1 parent f4ae3c6 commit 788c16f

File tree

2 files changed

+3655
-2
lines changed

2 files changed

+3655
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ jobs:
332332
run: |
333333
sudo apt update && sudo apt upgrade -y && sudo apt install -y curl wget unzip jq openssl && sudo apt clean
334334
echo curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME}/install.sh"
335-
bash <(curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME}/install.sh")
335+
GITHUB_REF_NAME_ENCODED=$(echo -n "${GITHUB_REF_NAME}" | jq -sRr @uri)
336+
bash <(curl -s "https://raw.githubusercontent.com/Keyfactor/kfutil/${GITHUB_REF_NAME_ENCODED}/install.sh")
336337
which kfutil
337338
kfutil version
338339
rm $(which kfutil)

0 commit comments

Comments
 (0)