Hello and welcome to CC!
While knowing the context would be helpful, in a sense it doesn’t matter. Honesty is always better than dishonesty. It sounds like you are afraid of potential unpleasant consequences. Own up to it, whatever it is; the freedom you’ll feel will be worth it.
The only reason I can see why keeping it to yourself would be better is if revealing it would cause real harm to others.