It is narrated from Sayyiduna Abu Mas'ud Ansari (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: "The one who is consulted must be trustworthy."
Brief Explanation
(Commentary on Hadith 2485)
That is, this advisor should not disclose the secret.