cook (one's) goose
To interfere with, disrupt, or ruin something for someone. News of my involvement in this scandal will cook my goose for sure.
ˌcook somebody’s ˈgoose
(informal) ruin somebody’s plans or chances of success: He thought that the police would never find him but when he saw the officer coming towards him he realized that his goose was finally cooked.