to spill the beans
to divulge a secret, especially to do so by accident or maliciously
Link to present incidents:
Calling his unexpected withdrawal from Afghanistan a "shame," Prince Harry expressed his disappointment Saturday at being sent home after the media's disclosure of his deployment.
On Saturday, Harry said he was "surprised by the way the British media kept to their side of the bargain and ... I am very grateful to that."
He added, "At the same time it doesn't surprise me that once again it came down to media, foreign media, that's once again spilled the beans."