One doesn't need a scandal uncovered by some journalist to resign.

You could also resign when you know you've screwed up, there's only a limited time before the press finds out and burns you, but if you resign now before it comes out, the press might not be bother with it, thereby saving your reputation.