When iterating on a directory or a Docker image, ggshield often hits binaries, like executable files. We should not try to scan these files by default, at least until #396 is done.
Steps to reproduce:
Scan a directory containing binaries, such as /usr/bin on a Unix system (ggshield secret scan path -ry /usr/bin)
Notice ggshield tries to detect the encoding of the files
Environment
Describe the bug
When iterating on a directory or a Docker image, ggshield often hits binaries, like executable files. We should not try to scan these files by default, at least until #396 is done.
Steps to reproduce:
ggshield secret scan path -ry /usr/bin
)Expected result:
ggshield should silently skip binary files.