Would you fire an intern who intentionally and repeatedly pushed broken code to production because for whatever reason it was in their best interest? We fire bad actors all the time.
> Would you fire an intern who intentionally and repeatedly pushed broken code to production
Probably not faster than I’d fire whoever let an intern repeatedly push broken code to production, without taking responsibility for fixing the deployment process problem they were responsible for, were I at the level where my responsibility wasn't merely to fix the deployment process problem but to address the problem that allowed the deployment process to persist, and presuming that there wasn't a systemic reason rather than simple nonfeasance behind permitting that problem to go unfixed.
Especially as establishing the “intentional” part of the hypothetical would probably take longer than establishing a serious and inexcusable failure even in the absence of any intent in the person responsible for allowing the push to be possible in the first place.
That's, I think, the upthread posters point. If you have an intern posting broken code to production repeatedly (intentionally or not), you have another problem that is a deeper and broader impact problem, whether individual or systemic or both, than the intern.
My main goal would be to understand how an intern could intentionally and repeatedly pushed broken code to production. Fixing that is more important than punishing the individual. A broken/corrupt system will do more damage over the long term than an rogue individual because a well designed system won't give a single individual with little experience that much control.