And I uploaded an Environment Variable using the website UI:
GITHUB_TOKEN
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 ‘git@github.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.
This means that you’re not encoding this command correctly into YAML. There must be no spaces at the front of here-document lines in the resulting multiline string in data representation. Check my example, and you can also use https://yaml-online-parser.appspot.com/ to check what your YAML is parsed into. See also the YAML 1.1 spec for syntax reference.
Encoding seems to have cracked it… I went through and basically “hard copy pasted” other examples.
I ended up changing basically zero code and now it works!