Travis 错误存储库无法从远程存储库读取

Zak*_*aks 6 git github git-submodules travis-ci

我的文件夹结构如下 rserver-docker 包含 rserver 的 gitsubmodule

git 子模块(rserver-docker)如下:

[submodule "rserver"]   
path = rserver  
url = git@github.com:VInc/rserver.git
Run Code Online (Sandbox Code Playgroud)

特拉维斯如下所示

before_install:
  - echo $CI_USER_TOKEN
  - echo -e "\n\nmachine github.com\n login $CI_USER_TOKEN\n" >>~/.netrc
  - git submodule update --init --recursive
Run Code Online (Sandbox Code Playgroud)

CI_USER_TOKEN 是在 Travis 设置中更新的个人访问令牌

我收到如下错误

 $ git clone --depth=50 --branch=dev git@github.com:VInc/rserver-docker.git VInc/rserver-docker
Cloning into 'VInc/rserver-docker'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
$ cd VInc/rserver-docker
$ git checkout -qf d445f5afe71a6f3390345842644e600ee4bbb68b
7.47s$ git submodule update --init --recursive
Submodule 'rserver' (git@github.com:VInc/rserver.git) registered for path 'rserver'
Cloning into '/home/travis/build/VInc/rserver-docker/rserver'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:VInc/rserver.git' into submodule path '/home/travis/build/VInc/rserver-docker/rserver' failed
Failed to clone 'rserver'. Retry scheduled
Cloning into '/home/travis/build/VInc/rserver-docker/rserver'...
ERROR: Repository not found.
Run Code Online (Sandbox Code Playgroud)

Zak*_*aks 2

这是个人访问令牌的问题,因为它没有 gitclone 代码的权限