to spill the beans / to let the cat out of the bag
He spilled the beans and told the secret.
I asked him not to say anything, but he let it slip.
—How did they find out? —Someone let the cat out of the bag at the office.