Definition
to ruin someone's plans or chances of success; to completely spoil someone's prospects.
If he makes one more mistake, that will really cook his goose.
Her plans were cooked when she found out they knew her secret.
He was so overconfident that he didn't see his competitor's underhanded tactics which cooked his goose.