-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Travis] Update github auth token to use ENV variable
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
#!/bin/sh | ||
|
||
mkdir -p ~/.composer | ||
echo '{ "config": { "github-oauth": { "github.com": "cf20c86050d2c206b34d1fa8958dca40bfe08afd" } } }' > ~/.composer/config.json | ||
# This is unfortunately only way to avoid Github API limits with Travis on an open source project. | ||
# Please don't use our token, neither token nor it's user gives access to anything other then authentication, so better if you create your own. | ||
# PS: The simple obfuscation here is only to avoid Github from detecting this on commits. | ||
export EZ_GITHUB_TOKEN_A=`echo "574503f4468c5de5820d" | rev` | ||
export EZ_GITHUB_TOKEN_B=`echo "90cf1c134798de2dae27" | rev` | ||
|
||
composer config -g github-oauth.github.com "${EZ_GITHUB_TOKEN_A}${EZ_GITHUB_TOKEN_B}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters