When you ask someone to spill the beans you are asking them to tell you secret information.
Examples:
As soon as he was arrested the thief spilled the beans: he told the police about the other members of his gang. The police caught them all.
You spent a whole hour in the boss's office. Is he going to give a pay rise? Come on, spill the beans!