Skip to content

Fix dotgit regex again#507

Merged
zricethezav merged 2 commits intomasterfrom
unknown repository
Jan 21, 2021
Merged

Fix dotgit regex again#507
zricethezav merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Jan 18, 2021

Description:

Previous issues #482 and #486 did not fully fixe the dotgit regex bug.

To Reproduce

Check out a github repo into a local directory ending with .git
$ git clone https://github.com/zricethezav/gitleaks gitleaks.git
Then run gitleaks with --no-git
$ gitleaks -p ./gitleaks.git --no-git
Note that no leaks were found.

Expected behavior

Many leaks should be detected.

Env

This bug was confirmed on zricethezav/gitleaks:v7.2.0 which is currently the latest available version.

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

@zricethezav
Copy link
Collaborator

@seb-elttam great catch!

@zricethezav zricethezav merged commit c0a9580 into gitleaks:master Jan 21, 2021
@ghost ghost deleted the fix-dotgit branch January 22, 2021 10:21
alayne222 pushed a commit to alayne222/gitleaks that referenced this pull request May 28, 2025
* fix dotgit regex again

* Revert accidentally modified files

Co-authored-by: Seb Elttam <seb@elttam.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants