cook someone's goose
US /kʊk ˈsʌm.wʌnz ɡuːs/
UK /kʊk ˈsʌm.wʌnz ɡuːs/

1.
to ruin someone's plans or chances of success
:
•
His careless mistake really cooked his goose for the promotion.
•
If you tell the boss about this, you'll really cook my goose.