> When that happens, the attacker will be able to push code to Github, and if that code gets deployed, you're owned
I'm a bit naive, but isn't this relatively straightforward albeit annoying? Separation of duties and requirement of hardware 2FA on push, merge, deploy. Add additional reviewers, human or LLM, as deemed necessary.