Scan-only TruffleHog tests with exact historical finding allowlists.

trufflehog_test

load("@rules_trufflehog//:defs.bzl", "trufflehog_test")

trufflehog_test(name, git, repository_marker, allowlist, scanner, all_refs, tags, **kwargs)

Runs a fresh Git-history scan without credential verification.

PARAMETERS

NameDescriptionDefault Value
nameTest target name.none
gitConsumer-supplied Git executable.none
repository_markerFile at the worktree root.none
allowlistJSON policy with exact detector/path/commit/line tuples.none
scannerOptional executable override for a custom scanner or fixture.Label("@rules_trufflehog//:trufflehog")
all_refsInclude all local refs when true.False
tagsAdditional tags, such as manual for an all-ref audit.[]
kwargsCommon Bazel test attributes.none