Closed j0nnyr0berts closed 2 years ago
@j0nnyr0berts Thanks for your contribution.
But following use case should also be handled:
/lib
but not /var/lib
Current code handles this.
Can you make this new behaviour optional based on a configuration parameter here?
@ramanan-ravi good point! How about using if strings.HasPrefix(path, skippablePathIndicator)
instead?
@ramanan-ravi good point! How about using
if strings.HasPrefix(path, skippablePathIndicator)
instead?
That works
@ramanan-ravi good point! How about using
if strings.HasPrefix(path, skippablePathIndicator)
instead?That works
Updated! 🙂
"{sep}var{sep}lib{sep}docker"
is included inblacklisted_paths
that the contents of/var/lib/docker
will not be scannedbaseDir
=/tmp/Deepfence/SecretScanning/df_<image_name><imagetag>/ExtractedFiles
which means that/var/lib/docker
is not skippedbaseDir
from theIsSkippableDir
check also allows for matching multiple directories with one patternstrings.HasPrefix
Love the software and am keen to use it in CI pipelines but need to be able to effectively ignore directories to control false positives 🙂