Git submodules from private repos

Hey,

I have two repos, both hosted on github: A and B, where A depends on B (eg. B is a submodule within A). I’ve added the necessary configuration in post-checkout in circle.yml, but the builder complains that repository B cannot be found (I’m guessing it can’t be accessed).

Is there a way to make this work?

-J

do the github creds you’re using have access to the second repo? if they do, i’m outa ideas.

It seems the way CircleCI gets access to repos is, it adds a checkout key to each project on github, but it doesn’t add all keys to whatever agent is responsible for providing authentication when checking out repos.

Add a user key to CircleCI that has access to both repos: https://circleci.com/docs/github-security-ssh-keys/