DEV Community

Cover image for Gitleaks: Find forgotten codes in your repositories
Thodoris Kouleris
Thodoris Kouleris

Posted on

Gitleaks: Find forgotten codes in your repositories

One of the problems you can face either when you are new to programming or when you have more experience is to forget somewhere in your code or in a file that you upload to git, codes or other data that should not be public. Obviously, no one will inform you that somewhere in public you have exposed your email username and password or the token with which you request data from some service and they are charging you for it. Not even git will tell you, when you commit your code, that you are going to make a big mistake.

Gitleaks was developed for this purpose. Gitleaks is a fast, lightweight and open source scanner for git repositories that can alert you abbout forgotten passwords or tokens. You can either run it autonomously in one of your repositories or integrate it automatically so that when you commit will inform you if it found a code leak. The tool is available for linux, mac and windows.

  • Official page here
  • github repository here
  • video demonstration here

Top comments (0)