3

I work on a lot of projects that use submodules, and some of them are added to their parent repos using a combination of both the https and ssh protocols, as if it's not important which one. SSH protocol has benefits that it uses ssh keys, but requires users set up those keys first.

I'd like to make a team policy: all projects should use GitHub's git user with ssh protocol in submodules. What are the pros/cons of said policy?

Community
  • 1
  • 1
Jeff Brateman
  • 3,229
  • 2
  • 20
  • 26

1 Answers1

1

Pro:

  • ssh keys can be registered/revoked

Cons:

I prefer activating 2FA on GitHub account, and use only Personal Access Token, which can be revoked as well, but which are used as classic username/password way (and which can be cached) with https url.

In both cases, the user need to be added as a collaborator to the GitHub repo.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250