Open ericluwj opened 2 years ago
There have been other issues (see #74 or #63 for examples) in the past when other tools than git
try to clone repos, and these don't follow the .gitconfig
configuration that is necessary to map deployment keys to repos.
What you can do to check:
After you ran this action here in your workflow, add a run
step and try to git clone ...your-first-repo...
and then git clone ...your-second-repo...
.
If that works (git
can clone both), your key setup and deployment-key mapping works fine ✔️ , the issue then lies within the tool you're using.
I don't know what vcs import
is or does. You'd need to find out if it brings its own git
client under the hood or if it can be switched to using the system-provided git
command.
Maybe the examples/caveats documented in the README for other platforms (here: https://github.com/webfactory/ssh-agent#additional-information-for-particular-tools-or-platforms) help you?
I have created 2 sets of ssh keys + github deploy tokens so that my main git repo github action workflow can clone 2 other private git repos. However, 1 private repo could be cloned while the other could not.
Run webfactory/ssh-agent@v0.5.3:
However, with command
vcs import --recursive --force /home/runner/work/vcc-ros/vcc-ros/.work/upstream_ws/src
:It is noted that the 2nd repo failed to be downloaded via
git clone
. The branch has been double checked.