Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no hash shown in fingerprint #1410

Open
j-lakeman opened this issue May 14, 2024 · 1 comment
Open

no hash shown in fingerprint #1410

j-lakeman opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@j-lakeman
Copy link

Describe the bug
when a leak is found, no hash is shown in the fingerprint

To Reproduce
Steps to reproduce the behavior:

  1. have test file with a “secret” in it
  2. let Gitleaks find it
  3. see fingerprint without hash

Expected behavior
hash should be in front of file path like in example .gitleaksignore

Screenshots

[I] ~ ❯❯❯ gitleaks detect --log-level warn --no-banner --verbose --no-git --source .config/spotify-player/                                                                                               main ⬆ ✱
Finding:     client_id = "65b708073fc0480ea92a077233ca87bd"
Secret:      65b708073fc0480ea92a077233ca87bd
RuleID:      generic-api-key
Entropy:     3.641127
File:        .config/spotify-player/app.toml
Line:        2
Fingerprint: .config/spotify-player/app.toml:generic-api-key:2

5:56PM WRN leaks found: 1
[I] ~ ❯❯❯  

Basic Info (please complete the following information):

  • OS: Debian GNU/Linux trixie trixie/sid x86_64
  • Gitleaks Version: 8.16.0-1+b4 amd64

cc @zricethezav

@j-lakeman j-lakeman added the bug Something isn't working label May 14, 2024
@j-lakeman
Copy link
Author

j-lakeman commented May 16, 2024

It seems to have sth to do with the --no-git flag.

Reproduced also on openSUSE Tumbleweed and macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant