Travis-ci github login in netrc

We’ve recently started seeing a travis-ci github login in our ~/.netrc. This has broken one of our node_js builds. The following is the first entry in ~/.netrc.

machine github.com
login travis-ci
password v1.17441be36ffe6bfa5a2ff9223b8e1672f9b7cc26

Our private GitHub login was the 2nd entry in ~/.netrc because we were using:

echo -e “machine github.com\n login $CI_USER_TOKEN” >> ~/.netrc

The travis-ci login prevented us from accessing our private GitHub repository. We’ve since updated the echo to ~/.netrc to overwrite the file (as the docs suggest):

echo -e “machine github.com\n login $CI_USER_TOKEN” > ~/.netrc

The question is, where did the travis-ci entry come from?

Imprint