I left out a sentence.
He didn't let on the secret to anyone.
It's OK, but awkward.
He didn't reveal the secret to anyone.
He didn't let on that he knew the secret.
He didn't let on the secret to anyone.
He didn't reveal the secret to anyone.
He didn't let on that he knew the secret.