I’ve been trying to use a private composer repo inside TravisCI.
I’ve set up the composer repo as usual, and this downloads locally.
I’ve approximately followed the basic tutorial/guide for using an API token.
I’ve added the following to the travis.yaml file:
before_script: - echo -e "machine github.com\n login $GITHUB_TOKEN" >> ~/.netrc
And I uploaded an Environment Variable using the website UI:
It is set as available to all.
(Note, this is a new format github token, of the form: “ghp_”…)
When I run this test, I get the following:
"Failed to download [user]/[repo] from source: Failed to execute git clone --mirror ‘email@example.com:[user]/[repo].git’ ‘/home/travis/.cache/composer/vcs/git-github.com-[user]-[repo].git/’
Please make sure you have the correct access rights and the repository exists.
… and later:
b973eadb25e3b19e56c6f7214bd0585a7” file could not be downloaded (HTTP/1.1 4
04 Not Found)
The token has been tested elsewhere and works.
What am I missing to get this working?