I'm new to Gitlab CICD. We have a repository which has two submodules registered with SSH urls. In the CICD job, it failed to clone the submodules because of Host key verification failed. I think the job environment's ssh public key is not registered in some Gitlab account, but I have no clue how to add the public key to which account.
The .gitsubmodules is like:
[submodule "xfoo"]
    path = xfoo
    url = git@gitlab.com:a/xfoo.git
[submodule "xbar"]
    path = xbar
    url = git@gitlab.com:a/xbar.git
The .gitlab-ci.yml is like:
variables:
    GIT_SUBMODULE_STRATEGY: recursive 
test:
  script:
    - bash ./foo.sh
cpplint:
  script:
    - bash ./bar.sh
In foo.sh and bar.sh there are no git commands. I think there's a standard setup for this case but just can't find out how.
