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

Error when checking out a repository with private submodules #30

Closed
BSanchidrian opened this issue Sep 4, 2019 · 3 comments
Closed

Comments

@BSanchidrian
Copy link

BSanchidrian commented Sep 4, 2019

Hello everyone,

I've tried to implement a basic dotnet build action on a github repository that contains one submodule which its a private repository itself.

git submodule sync
git -c http.https://github.com.extraheader="AUTHORIZATION: basic ***" submodule update --init --force
Submodule 'libs/PrivateRepo' (git@github.com:BSanchidrian/PrivateRepo.git) registered for path 'libs/PrivateRepo'
Cloning into '/home/runner/work/TestProject/libs/PrivateRepo'...
Host key verification failed.
##[error]fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
##[error]fatal: clone of 'git@github.com:BSanchidrian/PrivateRepo.git' into submodule path '/home/runner/work/TestProject/libs/PrivateRepo' failed
Failed to clone 'libs/PrivateRepo'. Retry scheduled
Cloning into '/home/runner/work/TestProject/libs/PrivateRepo'...
Host key verification failed.
##[error]fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
##[error]fatal: clone of 'git@github.com:BSanchidrian/PrivateRepo.git' into submodule path '/home/runner/work/TestProject/libs/PrivateRepo' failed
Failed to clone 'libs/PrivateRepo' a second time, aborting
Removed matchers: 'checkout-git'
##[remove-matcher owner=checkout-git]
##[error]Git submodule update failed with exit code: 1
##[error]Exit code 1 returned from process: file name '/home/runner/runners/2.157.3/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Repository.CheckoutTask, Runner.Plugins"'.
@wundo
Copy link

wundo commented Sep 5, 2019

Same here

@BSanchidrian BSanchidrian changed the title Error when checking out a private submodules Error when checking out a repository with private submodules Sep 6, 2019
@rectalogic
Copy link

See #14

@BSanchidrian
Copy link
Author

See #14

Thank you, for some reason I couldn't find that thread. I'll close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants