Skip to content

False positive for "Turkey Standard Time": "Europe/Istanbul" #1799

@TheSuperiorStanislav

Description

@TheSuperiorStanislav

Describe the bug
For some reason this python code

timezone_mapping = {
    "Turkey Standard Time": "Europe/Istanbul",
}

Leads to this

Finding:     "Turkey Standard Time": "REDACTED"
Secret:      REDACTED
RuleID:      generic-api-key
Entropy:     3.773557
File:        apps/sync/configs/users/transformers.py
Line:        72
Fingerprint: apps/sync/configs/users/transformers.py:generic-api-key:72

To Reproduce

Create this python file and run pre-commit hook

timezone_mapping = {
    "Turkey Standard Time": "Europe/Istanbul",
}

Expected behavior
No leaks reported

Screenshots

Image

Basic Info (please complete the following information):

  • OS: Manjaro Linux x86_64
  • Gitleaks Version: 8.24.0

Additional context
Add any other context about the problem here.

cc @zricethezav

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions