144 points · by bado · 11y ago · 51 comments
Host *.github.com
IdentitiesOnly yes
IdentityFile ~/.ssh/%h_id_rsa
HostKeyAlias github.com
ProxyCommand nc github.com %p
use whatever.github.com as the hostname when cloning, and put the key in ~/.ssh/whatever.github.com_id_rsaAnd if you are on Github's per-user pricing model, machine users are not free.
Use API + oauth access?
From what I can tell, there's no write:tags scope: https://developer.github.com/v3/oauth/#scopes
Personally, I've used them a lot to mirror from my own gitlab server onto github, so having them be read+write was a good thing in my case.
I know a lot more people use them to mirror stuff onto gh as well.
It's weird that they didn't have an option to write only for tags. "CI build X"...
[1] https://developer.github.com/guides/managing-deploy-keys/#ma...
I stopped using deploy keys long ago because of the security issue and instead opted to create additional github users with read-only access for each use case.
Why did GitHub call these "deploy" keys if they had write access? Why would a deploy user need full write privileges to a repository to deploy something?
Not that I really expect that to happen anytime soon, I believe others have been asking for the above for quite some time.
Iirc only the owner can create deploy keys, so it wasn't a feature aimed to teams either.