To get a private GitHub repo to work on Heroku, you can leverage the netrc buildpack in conjunction with the Heroku Ruby buildpack. Since you'll only need read access make sure to set that and restrict access to things that aren't needed like gist.
First, you'll need a GitHub OAuth token to be used. There's ways to do it via the commandline, but I find the personal settings page the easiest way especially if you're using 2 factor auth.
Assuming we already have a heroku app, we can set the token given that the netr buildpack will use.
$ heroku config:add GITHUB_AUTH_TOKEN=<my-read-only-token>source "https://rubygems.org"
gem "some_private_gem", git: "https://github.com/org/some_private_gem.git"$ heroku create
$ heroku buildpacks:add https://github.com/timshadel/heroku-buildpack-github-netrc.git
$ heroku buildpacks:add heroku/rubyTo get a private GitHub repo to work on Heroku, you can leverage the netrc buildpack in conjunction with the Heroku Ruby buildpack.
First, you'll need a GitHub OAuth token to be used. There's ways to do it via the commandline, but I find the personal settings page the easiest way especially if you're using 2 factor auth. Since you'll only need read access make sure to set that and restrict access to things that aren't needed like gist.
Assuming we already have a heroku app, we can set the token given that the netr buildpack will use.
$ heroku config:add GITHUB_AUTH_TOKEN=<my-read-only-token>The heroku toolbelt supports chaining multiple buildpacks to be run in succession.
$ heroku buildpacks:add https://github.com/timshadel/heroku-buildpack-github-netrc.git
$ heroku buildpacks:add heroku/rubysource "https://rubygems.org"
gem "some_private_gem", git: "https://github.com/org/some_private_gem.git"To get a private GitHub repo to work on Heroku, you can leverage the netrc buildpack in conjunction with the Heroku Ruby buildpack.
When setting up the Gemfile, make sure to use the https GitHub URL.
gem "some_private_gem", git: "https://github.com/org/some_private_gem.git"First, you'll need a GitHub OAuth token to be used. There's ways to do it via the commandline, but I find the personal settings page the easiest way especially if you're using 2 factor auth. Since you'll only need read access make sure to set that and restrict access to things that aren't needed like gist.
Assuming we already have a heroku app, we can set the token given that the netr buildpack will use.
$ heroku config:add GITHUB_AUTH_TOKEN=<my-read-only-token>The heroku toolbelt supports chaining multiple buildpacks to be run in succession.
$ heroku buildpacks:add https://github.com/timshadel/heroku-buildpack-github-netrc.git
$ heroku buildpacks:add heroku/rubyTo get a private GitHub repo to work on Heroku, you can leverage the netrc buildpack in conjunction with the Heroku Ruby buildpack.
When setting up the Gemfile, make sure to use the https GitHub URL. This mechanism does not work with git+ssh.
gem "some_private_gem", git: "https://github.com/org/some_private_gem.git"First, you'll need a GitHub OAuth token to be used. There's ways to do it via the commandline, but I find the personal settings page the easiest way especially if you're using 2 factor auth. Since you'll only need read access make sure to set that and restrict access to things that aren't needed like gist.
Assuming you already have a heroku app, you can set the token given that the netr buildpack will use.
$ heroku config:add GITHUB_AUTH_TOKEN=<my-read-only-token>The heroku toolbelt supports chaining multiple buildpacks to be run in succession.
$ heroku buildpacks:add https://github.com/timshadel/heroku-buildpack-github-netrc.git
$ heroku buildpacks:add heroku/rubyWith all of that setup, you can new deploy.
To get a private GitHub repo to work on Heroku, you can leverage the netrc buildpack in conjunction with the Heroku Ruby buildpack.
When setting up the Gemfile, make sure to use the https GitHub URL. This mechanism does not work with git+ssh.
gem "some_private_gem", git: "https://github.com/org/some_private_gem.git"First, you'll need a GitHub OAuth token to be used. There's ways to do it via the commandline, but I find the personal settings page the easiest way especially if you're using 2 factor auth. Since you'll only need read access make sure to set that and restrict access to things that aren't needed like gist.
Assuming you already have a heroku app, you can set the token given that the netr buildpack will use.
$ heroku config:add GITHUB_AUTH_TOKEN=<my-read-only-token>The heroku toolbelt supports chaining multiple buildpacks to be run in succession.
$ heroku buildpacks:add https://github.com/timshadel/heroku-buildpack-github-netrc.git
$ heroku buildpacks:add heroku/rubyWith all of that setup, you can new deploy.