deepfence / SecretScanner

:unlock: :unlock: Find secrets and passwords in container images and file systems :unlock: :unlock:
https://deepfence.io
MIT License
3.12k stars 321 forks source link

fix: refactor get file ext feat, change filepath to mimetype #48

Open Ethonwu opened 2 years ago

Ethonwu commented 2 years ago

Hello In match.go we use filepath to get file ext info But if this path string without ext name, it will get null value I refactor filepath to mimetype It can get real file ext info by use this lib