Skip to content

Add trace log for skipped archive file when not enabled#1961

Merged
zricethezav merged 1 commit intogitleaks:masterfrom
leaktk:new-trace-log
Oct 24, 2025
Merged

Add trace log for skipped archive file when not enabled#1961
zricethezav merged 1 commit intogitleaks:masterfrom
leaktk:new-trace-log

Conversation

@bplaxco
Copy link
Copy Markdown
Contributor

@bplaxco bplaxco commented Oct 20, 2025

Description:

Emit a trace log when an archive file is skipped and archive scanning is not enabled. This can help debug issues like #1949 (comment).

Example of the new trace log with the issue mentioned above:

...
11:49PM TRC scanning path path=/tmp/tmp.8OWxv6XT5V/.bru
11:49PM TRC skipping archive: exceeds max archive depth max_archive_depth=0 path=/tmp/tmp.8OWxv6XT5V/.bru
...

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@zricethezav zricethezav merged commit ed65b65 into gitleaks:master Oct 24, 2025
2 checks passed
@bplaxco bplaxco deleted the new-trace-log branch November 19, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants