Skip to content

Commit 6f58c9f

Browse files
authored
Mask temporary kubeconfig from logs (#271)
1 parent 5271863 commit 6f58c9f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/smoke.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ jobs:
4747
--resource-group="tpiSmokeTestCluster$GITHUB_RUN_ID" \
4848
--name="tpiSmokeTestCluster$GITHUB_RUN_ID" \
4949
--file - |
50-
perl -p -e 's/%/%25/g;' -e 's/\n/%0A/g;' -e 's/\r/%0D/g;' |
51-
xargs -0 printf "::set-output name=kubeconfig::%s\n"
50+
perl -0777p \
51+
-e 's/%/%25/g;' \
52+
-e 's/\n/%0A/g;' \
53+
-e 's/\r/%0D/g;' \
54+
-e 's/(.+)/::add-mask::\1\n::set-output name=kubeconfig::\1\n/g'
5255
env:
5356
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
5457
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}

0 commit comments

Comments
 (0)