To spill the beans is an idiomatic phrase which means to reveal a secret. For example: when the child was being questioned about the missing candy, he spilled the beans and revealed that his sister had eaten it.
In Spanish, the dictionary says that to spill the beans (sentido figurado) = descubrir el pastel (español de España), = destapar la olla (Am)
In Portuguese, it may be: derramar o feijão