We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccd38dd commit abbbb4dCopy full SHA for abbbb4d
1 file changed
scripts/ci/publish-build-artifacts.sh
@@ -75,11 +75,10 @@ function publishRepo {
75
done
76
77
(
78
- # SECURITY CRITICAL: DO NOT remove the set -x on the following line. Removing it will leak the github credentials to the travis log.
79
- set -x
80
cd $REPO_DIR && \
81
git config credential.helper "store --file=.git/credentials" && \
82
- echo "https://${GITHUB_TOKEN_ANGULAR}:@github.com" > .git/credentials
+ # SECURITY CRITICAL: DO NOT use shell to expand vars since it could be logged and leaked.
+ node -e "console.log('https://'+process.env.GITHUB_TOKEN_ANGULAR+':github.com')" > .git/credentials
83
)
84
fi
85
echo `date` > $REPO_DIR/BUILD_INFO
0 commit comments