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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay