Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pull private submodules using ssh #782

Closed
sallydly opened this issue Nov 16, 2022 · 1 comment
Closed

Cannot pull private submodules using ssh #782

sallydly opened this issue Nov 16, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sallydly
Copy link
Contributor

Description

When a private submodule's url is ssh (git@github.com:), the action is unable to pull the repository because it expects it to be an https url before it replaces it with a URL using the PAT.

Expected Behavior

Private submodule should be pulled regardless if the url is https or ssh.

Actual Behavior

Failure to clone private submodule
image

To Reproduce

  1. In .gitmodules, include a private submodule with an ssh url.
  2. Run action.
  3. Action will be unable to pull private submodule.

System (please complete the following information)

  • OS: Ubuntu 20.04
  • ROS 2 Distro: Foxy
@sallydly sallydly added the bug Something isn't working label Nov 16, 2022
@christophebedard christophebedard added the help wanted Extra attention is needed label Nov 16, 2022
@christophebedard
Copy link
Member

Hi, thanks for bringing this up! As you mentioned, using a PAT is the only working solution right now. I think the way action-ros-ci imports private repositories definitely needs to be improved. See also #765.

One solution might be to just rely on actions/checkout instead of changing the git config, but it would require changing the way action-ros-ci works internally (see #765 (comment)). Contributions for this are of course welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants