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

Git checkout action stucks during checkout operation #1363

Open
ManikandanSMK opened this issue May 30, 2023 · 3 comments
Open

Git checkout action stucks during checkout operation #1363

ManikandanSMK opened this issue May 30, 2023 · 3 comments

Comments

@ManikandanSMK
Copy link

ManikandanSMK commented May 30, 2023

git checkout actions is stucks the action is not completing so that all the action are facing the same issue

Eg:-1

image

While canceling the workflow below git command is taking long time to execute (in my case the command is executes but not completed)

git command takes huge time never end is "git clean -ffdx"

image

below is my git checkout step function

image

Runner:- am using self hosted windows runner and this issue occurring on randomly

@adya
Copy link

adya commented May 30, 2023

Oh, wow :) I'm experiencing the same thing.
With only a few differences:

  • I'm running on windows-latest
  • And set a ssh-key: ${{ secrets.MY_PRIVATE_SSH_KEY }}

Doesn't hang without ssh, though 🤔

UPD: Nevermind, in my case I needed to setup Deploy Key. and now it works 🙂

@ManikandanSMK
Copy link
Author

@adya how it works what changes need to be done

@adya
Copy link

adya commented May 30, 2023

As I mentioned, for me it was incorrect ssh-key which caused local git to hang.
I initially used only Private Key (e.g. the one that starts with -----BEGIN OPENSSH PRIVATE KEY-----) from an SSH key in my account.

But I've noticed in some examples people used Deploy Key, so that's what I did. And put a Public Key into ssh-key 🙂 and it worked.

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

2 participants