heroku-buildpack-github-netrc

Heroku buildpack: GitHub private repo access via ~/.netrc

This buildpack uses a GitHub OAuth2 token exposed as GITHUB_AUTH_TOKEN
to resolve private repository URLs without putting a specific username
or password in the URLs saved in local files (e.g. package.json).

If you use this in conjunction with the labs:pipeline feature of Heroku, you may
avoid setting the GITHUB_AUTH_TOKEN environment variable on your test & prod apps,
and instead only set it on the app where you push your code & which runs the buildpack.

Requirements

You'll need to make a GitHub authorization token. Here's the curl command you can use.