# Importing a private repo into another private repo within Travis CI/CD

**URL:** <https://travis-ci.community/t/importing-a-private-repo-into-another-private-repo-within-travis-ci-cd/11184>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** github-integration, python, docker\
**Created:** [February 16, 2021, 1:41pm UTC](https://travis-ci.community/t/importing-a-private-repo-into-another-private-repo-within-travis-ci-cd/11184 "2021-02-16T13:41:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pymatffm](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/pymatffm/32/6193_2.png) [@pymatffm](https://travis-ci.community/u/pymatffm)\
**Post date:** [February 16, 2021, 1:41pm UTC](https://travis-ci.community/t/importing-a-private-repo-into-another-private-repo-within-travis-ci-cd/11184/1 "2021-02-16T13:41:38Z")

</div>

I have several repos which are already setup nicely in a Travis CI/CD pipeline. Some of these repos are “green”, and seem to be working as they should. However some of these repos, rely on a “base” repo, which is just another private repo. We’re using Guthub and Python.

I’ve tried numerous combinations with importing via the `requirements.txt` file, `.travis.yml`. There are also `setup.py` files in every repo.

The documents on Travis’s website have so far not been able to resolve the issue. Further, it is not clear to me whether I should use ssh or https.

In Docker the current configuration is so:

```
RUN git clone git@github.mycompany.com:myname/BaseRepo.git --config core.sshCommand="ssh -o 'StrictHostKeyChecking no' -i /opt/app/.ssh/id_ed25519"
ENV NSABASE_PATH "/opt/BaseRepo/"

```

The current Traceback from a Travis run (git push) is:

```
Cloning into '/home/travis/build/myname/Repo1/submodule/BaseRepo'...
ERROR: Permission to myname/BaseRepo.git denied to deploy key
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.mycompany.com:myname/BaseRepo.git' into submodule path '/home/travis/build/myname/Repo1/submodule/BaseRepo' failed
Failed to clone 'submodule/BaseRepo'. Retry scheduled

```

Can anyone indicate where I am going wrong with importing a repo from a private Github account, into another repo, within the Travis CI/CD framework?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [February 17, 2021, 12:30am UTC](https://travis-ci.community/t/importing-a-private-repo-into-another-private-repo-within-travis-ci-cd/11184/2 "2021-02-17T00:30:38Z")

</div>

Please check this doc on how to download private dependencies:

> **[Travis CI Documentation](https://docs.travis-ci.com/user/private-dependencies/)**
>
> Private Dependencies GitHub
