checkout
checkout copied to clipboard
Failed to checkout@v2 ssh private submodules on windows-latest
The following build steps succeed when using ubuntu-latest
and macos-latest
.
steps:
- uses: actions/checkout@v2
with:
lfs: true
ssh-key: ${{secrets.XREPO_KEY}}
submodules: recursive
However, they get hung up for hours when using windows-latest
. The actions eventually time out.
Is there an alternate method I should use on windows-latest
to checkout private ssh submodules?
Update with some more info. It appears to get stuck on Fetching LFS objects. The action will run for 40 minutes, but the timestamp shows the operation was canceled moments after it started:
Run actions/checkout@v2 42m 53s
401
Mon, 27 Jul 2020 22:01:41 GMT
##[error]The operation was canceled.
1
Mon, 27 Jul 2020 22:01:20 GMT
Run actions/checkout@v2
13
Mon, 27 Jul 2020 22:01:33 GMT
Syncing repository: myorg/myrepo
14
Mon, 27 Jul 2020 22:01:33 GMT
Getting Git version info
20
Mon, 27 Jul 2020 22:01:35 GMT
Deleting the contents of 'd:\a\myrepo\myrepo'
21
Mon, 27 Jul 2020 22:01:35 GMT
Initializing the repository
25
Mon, 27 Jul 2020 22:01:36 GMT
Disabling automatic garbage collection
27
Mon, 27 Jul 2020 22:01:36 GMT
Setting up auth
41
Mon, 27 Jul 2020 22:01:39 GMT
"C:\Program Files\Git\bin\git.exe" lfs install --local
42
Mon, 27 Jul 2020 22:01:39 GMT
Updated git hooks.
43
Mon, 27 Jul 2020 22:01:39 GMT
Git LFS initialized.
44
Mon, 27 Jul 2020 22:01:39 GMT
Fetching the repository
397
Mon, 27 Jul 2020 22:01:41 GMT
Determining the checkout info
398
Mon, 27 Jul 2020 22:01:41 GMT
Fetching LFS objects
399
Mon, 27 Jul 2020 22:01:41 GMT
"C:\Program Files\Git\bin\git.exe" lfs fetch origin refs/remotes/origin/mybranch
400
Mon, 27 Jul 2020 22:01:41 GMT
fetch: Fetching reference refs/remotes/origin/mybranch
401
Mon, 27 Jul 2020 22:01:41 GMT
##[error]The operation was canceled.
i also found this issue.
using the following action which works on ubuntu-latest
name: CI
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
lfs: 'true'
submodules: 'recursive'
ssh-key: ${{ secrets.git_ssh_key }}
env:
GIT_CURL_VERBOSE: '1'
GIT_TRACE: '1'
will hang on git-lfs-authenticate
trace git-lfs: exec: sh '-c' '"C:\Windows\System32\OpenSSH\ssh.exe" -i "$RUNNER_TEMP/-a80a-4230-a3ab-" -o StrictHostKeyChecking=yes -o CheckHostIP=no -o "UserKnownHostsFile=$RUNNER_TEMP/-a80a-4230-a3ab-26ac44c4f1ac_known_hosts" [email protected] 'git-lfs-authenticate ORG/LFSPackage.git download''
Any updates on this? I seem to be having the same issue on windows-latest, the step hangs for more than 40 minutes and I get no meaningful logs to understand what is going on.
I'm also interested in this

when I ./config.cmd --name $runner_name --unattended --replace --runasservice in windows server,then I will get above error when run checkout action when use ssh way to clone code