Interview Prep/Git & GitHub/Recovery and incident handling

You find a malicious commit pushed by a compromised account. What is your response?

AdvancedProductionRecovery and incident handling
Answer

Contain: suspend the account, revoke tokens and SSH keys, rotate secrets that could have been exposed. Investigate with the audit log and commit scope, revert or remove the commit, rebuild and redeploy affected artifacts from known-good SHAs, check dependent repos and releases for the same code, and notify per policy. Then add signed-commit requirements or stronger review on the affected paths.

All Git & GitHub questions Roadmap: Git & GitHub

More on Recovery and incident handling