The first step is in admitting that you have a problem, so congrats!!... and the second is to look at what it is that you are trying to get by doing it.
Once you determine what the payoff is that you get from it, you can look for different, more healthy alternatives to get these emotional needs met. Also, once you determine the payoff, then you'll want to turn your attention to the consequences and remind yourself simply, "is the inevitable punishment really worth the crime?" Is the damage you may cause really worth the short-term payoff? It takes awareness, meeting your needs in responsible healthy ways, and realizing that you are creating a "brand" in how you market yourself in the world. You alone are in control of how you will be perceived, and these are simple choices to either keep your dignity and be honest with those you matter to you, or to be portrayed as someone who cannot be trusted. This is your choice; we create our own realities.
Here is a link to some simple steps, and as I said, awareness of the consequences you are creating and choosing to live your life among is the first and most important step:
You can do this!! Please let me know if this was helpful... or if you have further questions or more information to share! I'm here to help!!