ci: fix incorrect github credetials (#15146)

This commit is contained in:
Miško Hevery 2017-03-14 11:49:33 -07:00 committed by Chuck Jazdzewski
parent 060a2d11e5
commit 221899a930
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ env:
global: global:
# GITHUB_TOKEN_ANGULAR=<github token, a personal access token of the angular-builds account, account access in valentine> # GITHUB_TOKEN_ANGULAR=<github token, a personal access token of the angular-builds account, account access in valentine>
# This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery. # This is needed for the e2e Travis matrix task to publish packages to github for continuous packages delivery.
- secure: "PJXJptSS0ukNH4rxXpLFQ4wLxY/uiyFz0V5VQysM9adYu4tebqwP5fzZp6pb7IdYMJKaW9Lw1R9VGcV0dWqr4blf/H3MMc4Y6z18cPq+j56WoM5sgsDo5lRlsCC0g63TZUuBKQhKE2WQgAERJebCQSDkFyPi88Qmph6fkP3bbjg=" - secure: "rNqXoy2gqjbF5tBXlRBy+oiYntO3BtzcxZuEtlLMzNaTNzC4dyMOFub0GkzIPWwOzkARoEU9Kv+bC97fDVbCBUKeyzzEqxqddUKhzRxeaYjsefJ6XeTvBvDxwo7wDwyxZSuWdBeGAe4eARVHm7ypsd+AlvqxtzjyS27TK2BzdL4="
# FIREBASE_TOKEN # FIREBASE_TOKEN
# This is needed for publishing builds to the "aio-staging" firebase site. # This is needed for publishing builds to the "aio-staging" firebase site.
# TODO(i): the token was generated using the iminar@google account, we should switch to a shared/role-base account. # TODO(i): the token was generated using the iminar@google account, we should switch to a shared/role-base account.

View File

@ -78,7 +78,7 @@ function publishRepo {
cd $REPO_DIR && \ cd $REPO_DIR && \
git config credential.helper "store --file=.git/credentials" && \ git config credential.helper "store --file=.git/credentials" && \
# SECURITY CRITICAL: DO NOT use shell to expand vars since it could be logged and leaked. # 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 node -e "console.log('https://'+process.env.GITHUB_TOKEN_ANGULAR+':@github.com')" > .git/credentials
) )
fi fi
echo `date` > $REPO_DIR/BUILD_INFO echo `date` > $REPO_DIR/BUILD_INFO