gitleaks / gitleaks

Protect and discover secrets using Gitleaks 🔑

Home Page:https://gitleaks.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitleaks detect missing one commit in scan

edishu opened this issue · comments

Describe the bug
When I use gitleaks detect ., locally in my repo, one commit is omitted from scanning.
My repo's main branch has 67 commits while gitleaks scans only 66 commits.

To Reproduce
I'm not sure how to reproduce this.

Expected behavior
gitleaks detect command should scan all the commits on all branches

Screenshots
image

Basic Info (please complete the following information):

  • OS: macOS 14.4.1
  • Gitleaks Version: 8.18.2

cc @zricethezav

You likely have a commit with just deletions. Commits with just deletions are not counted. This is known behavior and there is a --log-level=debug message for it

You likely have a commit with just deletions. Commits with just deletions are not counted. This is known behavior and there is a --log-level=debug message for it

sounds good, thanks for clarification!