BuildBot seems to be using the underlying git
OS command for GitPoller, which itself is just going to call ssh
,
gitbin
path to the Git binary, defaults to just 'git'
so I think you can just use standard ~/.ssh/config
declarations to provide the key for the private repo. Create a declaration that uses your specific key in the worker (and the buildmaster) home directories similar to this;
# cat /home/worker/.ssh/config
Host github.com
ClearAllForwardings yes
User git
IdentityFile /home/worker/.ssh/id_rsa.github-somekey-specific-to-github
And then the buildbot will use that key.
I think if you want to use a per repo key, then that could be done like so;
Host repo_1_github.com
Hostname github.com
ClearAllForwardings yes
User git
IdentityFile /home/worker/.ssh/id_rsa.github-somekey-specific-to-github
Host repo_2_github.com
Hostname github.com
ClearAllForwardings yes
User git
IdentityFile /home/worker/.ssh/id_rsa.github-some-other-key
and then adjust your urls in buildbot appropriately;
git@repo_1_github.com:organization/my_repo_thing_1.git
git@repo_2_github.com:organization/my_repo_thing_2.git