-
Notifications
You must be signed in to change notification settings - Fork 14
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
pull: "No valid credentials" when using an ssh-agent #236
Comments
I can't reproduce this issue with the latest DVC release (pmrowla/test-dvc-ssh#1) @mirkolenz are you still experiencing this problem? |
Thank you for the investigation! I just tested it again (i.e., I disabled my mitigations for this issue) and it is still relevant. However, I now get a different error: Instead of complaining about missing credentials, dvc begins pulling the repo and just stalls. I had to manually abort the action after 10 minutes. Here are the relevant files: I hope this is helpful for you to triage this error. Thanks again for looking at this issue 😃 |
For reference: Here is the workflow with mitigations in place |
Hard to tell what might be hanging, it's possible the recent scmrepo changes may address this but we'll have to wait for the next DVC release to check. I'll ping you when there's a new release to test against. |
@mirkolenz can you please try the latest DVC release |
Thanks for coming back to this topic! I am quite busy at the moment as two deadlines are approaching. I will try to provide you with an update sometime this week. |
Bug Report
pull: "no valid credentials" when using ssh-agent
Description
As outlined in #215, I tried setting up SSH keys using the webfactory/ssh-agent action. However, dvc always complained that no valid credentials were provided even though the SSH keys were added as deploy keys to the individual repositories. This is the same action that was mentioned in iterative/dvc#7702 as well, so I see some similarities here (even though the linked issue only mentions these problems on Windows-based machines).
Reproduce
Use the following GitHub action:
Expected
DVC uses the credentials provided by the ssh-agent and pulls the data. However, dvc always complains that no valid credentials were provided.
Environment information
The problem occurs on GitHub actions using
ubuntu-latest
and thesetup-dvc
action.Additional Information (if any):
I ran the following script provided by @dtrifiro in the same GitHub action:
and got this output:
meaning that the keys are picked up by
asyncssh
.The text was updated successfully, but these errors were encountered: