GitHub Private Repos Considered Private-­Ish
Recommendations missing from the article:<p>- Enable mandatory 2fa within your Github organization (if you don&#x27;t use an organization, you probably should)<p>- Disable the ability to fork repos in your organization<p>- Configure and enable mandatory SAML authentication. In combination with mandatory 2fa, this makes phishing and even key leakage less likely (specific keys need to be double authorized for SAML, so that random private key you have on a random CI&#x2F;CD platform from a few years ago can&#x27;t access repos in SAML organizations even if it&#x27;s leaked)<p>- Disable the ability to make repos public at the organization level<p>These are some quick setting changes that should address at least 3 of the 4 main issues in the article.<p>Additional suggestion:<p>Enable branch protection on master. Require at least 1 peer review to merge anything in it. Enforce branch restrictions to include repo admins so restrictions can&#x27;t be bypassed. This should stop obvious mistakes like accidentally committing .git or random credentials.<p>Edit:  if the author sees this, feel free to add these things to the article!