Updated Jul 15, 2026

Static Code Analysis

Scan Git commit history for high-entropy secrets

Entropy-based secret scan across a Git repository's commit history.

commit f6f29ba on Trickest · Python · GPL-3.0 license

Free plan: 1 user, 3 execution slots, no card.

overview

What reposcanner does

A secret was committed once, then deleted from HEAD. Checkout-only scanners miss it. reposcanner walks past commits so reverted API keys, tokens, and passwords still surface.

Pass -r for the repo, tune -e minimum Shannon entropy and -l max line length, then bound with -c commit count or -b branch when a full-history pass is too heavy.

gitleaks and trufflehog ship larger detector libraries and verification. reposcanner stays entropy-driven. Feed a repository reference; findings land as FILE plus FOLDER for org-wide sweeps.

source github.com/Dionach/reposcanner · commit f6f29ba on Trickest

image quay.io/trickest/reposcanner:f6f29ba

use cases

reposcanner use cases

Catch secrets removed from the working tree

Scan the full commit history so credentials that were committed and later deleted still surface, since they remain reachable in past commits.

Audit a specific branch

Point reposcanner at one branch with -b to review a feature line or release branch in isolation rather than the whole repository.

Tune entropy to cut noise

Raise the minimum entropy threshold with -e to focus on high-randomness strings and reduce false positives from ordinary code and config text.

Sweep many repositories in a pipeline

Feed a list of organization repositories through reposcanner so every codebase gets a history-level secret check on a schedule.

reference

reposcanner inputs and flags

6 inputs
NameTypeFlagDescription
repoSTRING-rRepo to scan.
countSTRING-cNumber of commits to scan. Default: all.
branchSTRING-bScan a specific branch.
lengthSTRING-lMaximum line length. Default: 5.
entropySTRING-eMinimum entropy to report. Default: 4.3.
verboseBOOLEAN-vVerbose.

Showing key inputs. reposcanner exposes 6 inputs in total.

example

reposcanner command examples

reposcanner · command
# scan full history of a public repo for high-entropy secrets
reposcanner -r https://github.com/example-org/example-repo -e 4.3 -l 200 -v
Illustrative
[+] Scanning https://github.com/example-org/example-repo
[+] Branch: main
[!] High entropy string found
    Commit: a1b2c3d4e5f60718293a4b5c6d7e8f901234abcd
    File:   config/settings.py
    Line:   42
    Entropy: 5.12
    String: AKIAIOSFODNN7EXAMPLE
[!] High entropy string found
    Commit: 9f3a1c2b7d4e5f60a1b2c3d4e5f6a7b8c9d0e1f2
    File:   .env.example
    Line:   8
    Entropy: 4.91
    String: sk_test_EXAMPLE00000000000000000000

guidance

reposcanner vs alternatives

Reach for reposcanner when the target is Git commit history, not just the working tree. Prefer gitleaks or trufflehog when you need a larger ruleset or credential verification.

ToolPick it when
gitleaksRule plus entropy scanner with a large built-in ruleset and git-history support.
trufflehogScans history and live sources, then verifies found credentials against providers.
secretfinderTargets secrets inside JavaScript files, not Git commit history.

faq

reposcanner FAQ

A secret committed once and later removed stays in past commits. reposcanner walks history so those reverted credentials are still detected.

It measures Shannon entropy against the -e minimum threshold and applies -l line-length rules, flagging high-randomness lines that look like keys or tokens.

Yes. Use -c to scan only a fixed number of recent commits, or -b to restrict the scan to one branch.

A local path or a remote Git URL. In a workflow graph, set the repo input instead of passing -r on the CLI.

gitleaks ships a large detector library. reposcanner is thinner and entropy-driven: tune -e and -l, then bound with -c or -b.

Run reposcanner yourself

A repository reference feeds reposcanner, which walks the commit history and writes any high-entropy secrets it finds as a queryable output.

Facts on this page come from the live Trickest tool library.