DevOps Interview DropExpert TierScenario+100 XP on read

Someone force-pushed main at 2 AM. How do you investigate?

Core Summary

Preserve evidence first, then answer four questions: what was main before, what is it now, who did it, and was anything deployed from the rewritten history. Treat it as potentially malicious until the audit log says otherwise, because a force-push at 2 AM is an unusual enough event to earn that default.

Hints

Hint 1: Recover the before-SHA before anything expires

Hint 2: Force-push at 2 AM is either an accident or an intrusion

Hint 3: Check what deployed in the same window

Reported in interviews at Cloudflare, GitHub, Chainguard