question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submodule initialization with private sumodule fails

See original GitHub issue

Hi, I am testing v2. My goal is to initialize submodules behind a private repo with the whole history.

I am not sure if I am doing this right, but I am doing this.

    - uses: actions/checkout@v2
      with:
        token: ${{ secrets.CI_PAT }}
        submodules: 'true'
        fetch-depth: 0

And receiving this output.

Run actions/checkout@v2
/usr/bin/docker exec  cf6073467e49ed136c89b40c65140167d4da6b133a966b11d7b7277f30c084cb sh -c "cat /etc/*release | grep ^ID"
Syncing repository: my_company/my_repo
Getting Git version info
Deleting the contents of '/__w/my_repo/my_repo'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* +eebee8254a6b64f5edb7510c9a2fbdebe78873bb:refs/remotes/pull/156/merge
  remote: Repository not found.
  ##[error]fatal: repository 'https://github.com/my_company/my_repo/' not found
  The process '/usr/bin/git' failed with exit code 128
  Waiting 20 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/* +eebee8254a6b64f5edb7510c9a2fbdebe78873bb:refs/remotes/pull/156/merge
  remote: Repository not found.
  ##[error]fatal: repository 'https://github.com/my_company/my_repo/' not found
  The process '/usr/bin/git' failed with exit code 128
  Waiting 11 seconds before trying again

The repo and the company name was renamed here, but they are good The browser opens the (right) URL.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
leoheckcommented, Jul 10, 2020

Yeap, I tested this yesterday as well and it is working now. My issue is that my submodule is private.

But this is working as well now.

    - name: Checkout with submodules
      uses: actions/checkout@v2
      with:
        submodules: 'true'
        token: ${{secrets.CI_PAT}}
1reaction
leoheckcommented, Jun 9, 2020

Someone told that V2 does not implement submodule but this info is not on README. So it will be nice to put it there if it is right.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Cannot initialize submodule (branch of private repository)
git clone --recurse-submodules https://github.com/vishvAsa/rahaShTippanyaH.git succeds just fine - except for the submodule content. The below ...
Read more >
Unable to clone private GitHub submodule repository
Hi! I'm trying to create a Build pipeline for my project. The main repository is hosted in the Azure Repo Git while a...
Read more >
Git submodule clone failure for private repository [Bitbucket]
My build is failing on: $ git submodule update --init --recursive The submodule is owned under the same umbrella of the main repositor…...
Read more >
Jenkins can't find private git submodules - Ask a question
> git.exe submodule update --init --recursive Source/TesserconCore # timeout=10 ERROR: Checkout failed hudson.plugins.git.GitException: Command ...
Read more >
Configuration problems for CI builds with Git private submodule
But it's still failing with the same error messages. # .gitmodules [submodule "source"] path = source url = git@gitlab.com:rivy/blog.content.git ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found