Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Travis] Ability to add Github OAuth token to Composer configuration #3851

Merged
merged 1 commit into from
Jan 13, 2016

Conversation

pamil
Copy link
Contributor

@pamil pamil commented Jan 12, 2016

It allows us to define GITHUB_OAUTH_TOKEN secret variable in Travis CI so we shouldn't get as many "Could not authenticate against github.com" error messages as before.

To use this feature:

  • merge this changes to your all branches on Sylius fork (unpatched php -i can cause the leak)
  • go to https://travis-ci.org/<your user name>/Sylius/settings
  • create environment variable with name GITHUB_OAUTH_TOKEN and your OAuth token as value
  • be sure to have "Display value in build log" option disabled

It only works for branches builds, does not run on PRs for security reasons, but it should be enough, as PRs cache uses master branch cache first, with all the dependencies already downloaded.

@pjedrzejewski pjedrzejewski added the DX Issues and PRs aimed at improving Developer eXperience. label Jan 12, 2016
pjedrzejewski pushed a commit that referenced this pull request Jan 13, 2016
[Travis] Ability to add Github OAuth token to Composer configuration
@pjedrzejewski pjedrzejewski merged commit 00da887 into Sylius:master Jan 13, 2016
@pamil pamil deleted the travis-composer-github-oauth branch January 13, 2016 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants