trufflehog icon indicating copy to clipboard operation
trufflehog copied to clipboard

Scan sometimes displays wrong line number

Open RebeckaForsberg opened this issue 2 years ago • 1 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

TruffleHog Version

3.25.2

Expected Behavior

When running the Trufflehog the output containing the line number should match the line in the actual commit.

Actual Behavior

The lines do sometimes not match.

Steps to Reproduce

We are running Trufflehog on internal repositories with the command: trufflehog git <URL> --only-verified

and the output in the terminal shows a line number. When searching for the commit in Azure DevOps the secret sometimes appears on a different line than stated in the output.

Environment

  • OS: macOS Monterey
  • Version 12.6

Additional Context

When the lines do not match, the line number in the commit is around five lines below or above.

RebeckaForsberg avatar Jan 18 '23 12:01 RebeckaForsberg

Could you provide the secret type that you observed this issue with?

dustin-decker avatar Jan 25 '23 05:01 dustin-decker

@RebeckaForsberg if this is still an issue feel free to reopen. If you do can you provide more details and a way for us to reproduce this bug? Thanks!

zricethezav avatar Jun 29 '23 21:06 zricethezav