Ruby bundler issue, unable to fetch gem from git repo

Hi,
I’m trying to deploy a change in one of my library requirements.
In Gemfile file, I’m declaring a gem to use git to fetch the source :

gem "datastar", git: "git@github.com:starfederation/datastar.git", tag: "v1.0.0-RC.1", glob: "sdk/ruby/*.gemspec"

This is failing, so I SSH logged to the server and tried to run the bundle update command. The output:


Git error: command `git clone --bare --no-hardlinks --quiet --no-tags --single-branch --branch v1.0.0-RC.1 --
git@github.com:starfederation/datastar.git
/opt/render/project/.gems/ruby/3.4.0/cache/bundler/git/datastar-0f17ca0dbdfcb664756db1e2b63295b16918c8c4` in directory
/opt/render/project/.gems/ruby/3.4.0/cache/bundler/git/datastar-0f17ca0dbdfcb664756db1e2b63295b16918c8c4 has failed.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

so “Permission denied (publickey)” seems to be the problem…It is a public repo on Github, how can I fix this issue?

Thanks!

Ok, I changed git url to use https so no need to import ssh key or whatever. Seems to work. Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.