Classic Docs
Docs Navigation

Fail: Permission denied from GitHub on bundle install

Example of output:

Fetching gem metadata from
Fetching gem metadata from
Warning: Permanently added ',' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Git error: command `git clone ''
--bare --no-hardlinks` in directory
/home/runner/1234567890 has failed.

Make sure that your Gemfile is referencing a repository with a public, read-only URL and not with a private SSH URL which requires presence of your personal SSH key.

This is good:

gem "rails-settings", :git => ""

This won't work (unless you insert a working SSH key into the build environment, which is not necessary unless it's a private repository):

gem "rails-settings", :git => ""

Semaphore Docs are open source — Edit on GitHub


Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2020 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.