Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

** doesn't match as expected #59

Open
EugZol opened this issue Jul 5, 2024 · 0 comments
Open

** doesn't match as expected #59

EugZol opened this issue Jul 5, 2024 · 0 comments

Comments

@EugZol
Copy link

EugZol commented Jul 5, 2024

Instead of matching recursively, unless it's used at the end of the string, ** in config matches just single directory.

trufflehog_test % tree -a
.
├── .trufflehog3.yml
└── outer
    └── inner
        └── deeper
            └── test-dev.yml

4 directories, 2 files
trufflehog_test % cat outer/inner/deeper/test-dev.yml 
-----BEGIN DSA PRIVATE KEY-----
trufflehog_test % cat .trufflehog3.yml 
exclude:
  - message: yml
    paths:
      - 'outer/**/*.yml'

Result:

trufflehog_test % trufflehog3
outer/inner/deeper/test-dev.yml
HIGH    Private Key
1  -----BEGIN DSA PRIVATE KEY-----

Expected: no output

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

No branches or pull requests

1 participant