diff --git a/detect_secrets/filters/heuristic.py b/detect_secrets/filters/heuristic.py index 3c4eb263e..9ac5745c7 100644 --- a/detect_secrets/filters/heuristic.py +++ b/detect_secrets/filters/heuristic.py @@ -85,22 +85,35 @@ def is_non_text_file(filename: str) -> bool: IGNORED_FILE_EXTENSIONS = set( ( '.7z', + '.bin', '.bmp', '.bz2', + '.class', + '.css', '.dmg', + '.doc', '.eot', '.exe', '.gif', '.gz', '.ico', + '.iml', + '.ipr', + '.iws', '.jar', '.jpg', '.jpeg', + '.lock', + '.map', '.mo', + '.pdf', '.png', + '.prefs', + '.psd', '.rar', '.realm', '.s7z', + '.sum', '.svg', '.tar', '.tif', @@ -114,7 +127,6 @@ def is_non_text_file(filename: str) -> bool: ), ) - def is_templated_secret(secret: str) -> bool: """ Filters secrets that are shaped like: {secret}, , or ${secret}.