ci: fix snapshot publish github credential preparation (#48648)

It looks like the wrapping in `&> /dev/null` breaks for some reason.
We don't need it as CircleCI will remove secrets from logs if they
would leak for some reason.

A simple echo is very unlikely ever printing its content to
stdout/stderr though.

PR Close #48648
This commit is contained in:
Paul Gschwendtner
2023-01-05 16:39:20 +00:00
parent 90ac8e3a15
commit 5d1fbbbf83
+1 -3
View File
@@ -452,9 +452,7 @@ jobs:
- run: git config --global --unset "url.ssh://git@github.com.insteadof"
- run:
name: Prepare GitHub credentials
command: |
# Ensure we never accidentally print the token to stdout/stderr.
{echo "https://${SNAPSHOT_BUILDS_GITHUB_TOKEN}:@github.com" > $HOME/.git_credentials} &> /dev/null
command: echo "https://${SNAPSHOT_BUILDS_GITHUB_TOKEN}:@github.com" > ${HOME}/.git_credentials
- run: ./scripts/ci/publish-build-artifacts.sh
aio_misc: