How to handle private git repos?

I need to use a private git repo as the source for one of the parts in my snap. I am wondering if there is an environment variable or switch somewhere I can use to push my ssh key through to the container that snapcraft uses to build by snap so that it can pull my private repo?