Separation of duties is how you prevent that.
In software delivery, a pipeline moves code from commit to production. Without strict separation of duties, a single person can write, approve, and deploy code without oversight. This increases the risk of security breaches, compliance violations, and undetected errors. Enforcement must happen where automation meets human approval — inside the pipeline itself.
Effective separation of duties in pipelines means splitting responsibilities across build, test, review, and deploy stages. No single identity should own all permissions. The system should require independent approvals before promoting code to production. For regulated industries, this is a compliance baseline, not just a best practice. For any engineering team, it is a defense against bad code and malicious changes.