Skip to content

Submodule initialization with private sumodule fails #268

Open
@leoheck

Description

@leoheck

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.

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