actions / actions/checkout

Cannot update submodule on self-hosted runner using SSH

Open
#463 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

I have a self-hosted runner on windows server. It is running as a default service, username: Network Service. While configuring the runner, I selected all default options.

I have a repository with one submodule in it.
The runner fails while updating the submodule in the main repository.

runs-on: self-hosted
steps:
  - name: Check out repository
    uses: actions/checkout@v2
    with:
      fetch-depth: 0
      submodules: true
      ssh-key: ${{ secrets.KEY }}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the workflow using actions/checkout@v2 on the Windows self-hosted runner configured as Network Service, and reproduce the failure with submodules: true and ssh-key. Compare the runner's SSH and submodule behavior with a successful checkout; done means the submodule updates over SSH in this configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, typescript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.