If someone blows your cover, they inadvertently reveal your true identity or your intentions.
"Harry dressed up as Santa Claus, but the dog recognized him and blew his cover!" "An agent infiltrated the gang but a news report on TV blew his cover."