upvote
> If 2FA was required, how did they do it?

They could have gained access to the employee's machine, and at that point it's easy even if you have 2FA required - in most cases it's required for accessing the web client, not server via git command.

Employee could also have gh tool available or access token stored somewhere.

reply
You ideas sound very likely. That said, what should GitHub do to strengthen 2FA in these scenarios? Example: Should it be required to 2FA before each push? Or 2FA before creating a PR?
reply
It'd be interesting to see what code review happened in the PR
reply
"LGTM, did not test"
reply