Skip to content

trufflehog cannot obtain the force-push data. #8

@z3roTo0ne

Description

@z3roTo0ne

When I use force-push-scanner, I find that force-push-scanner will call trufflehog to try to find sensitive data of force-push, but the following error occurs:

$ trufflehog git https://github.com/trufflesecurity/test_keys --branch 7c2a103a324dff607c89cf59e42a4a3c2fddb87a --since-commit 742a554281e85266212a6a7e4fa33b7a950ab6a6 --results=verified
🐷🔑🐷  TruffleHog. Unearth your secrets. 🐷🔑🐷

2025-10-31T10:12:50+08:00	info-0	trufflehog	running source	{"source_manager_worker_id": "w45fD", "with_units": true}
2025-10-31T10:12:50+08:00	error	trufflehog	encountered errors during scan	{"job": 1, "source_name": "trufflehog - git", "errors": ["error chunking dir \"/var/folders/nk/sld1qpcd01s5bkchyjk9mppc0000gn/T/trufflehog-21136-3382898403\": unable to resolve commit: object not found"]}
2025-10-31T10:12:50+08:00	info-0	trufflehog	finished scanning	{"chunks": 0, "bytes": 0, "verified_secrets": 0, "unverified_secrets": 0, "scan_duration": "2.247758375s", "trufflehog_version": "3.90.12", "verification_caching": {"Hits":0,"Misses":0,"HitsWasted":0,"AttemptsSaved":0,"VerificationTimeSpentMS":0}}

$ trufflehog --version
trufflehog 3.90.12

And this commit: 7c2a103a324dff607c89cf59e42a4a3c2fddb87a and the demonstration gif in the force-push-scanner project are the same, but trufflehog prompts unable to resolve commit: object not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions