Skip to content

Failed to checkout@v2 ssh private submodules on windows-latest #311

Open
@hbursk

Description

@hbursk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions