From 5d1fbbbf836bb86f92241247f734be4f41045db5 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 5 Jan 2023 16:39:20 +0000 Subject: [PATCH] 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 --- .circleci/config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8fdffeba565..57b616ed587 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: