From a0ffe78229f42386d8f2fbe97414b923b73d0788 Mon Sep 17 00:00:00 2001 From: Eren0852 Date: Fri, 6 Jun 2025 18:33:55 +0300 Subject: [PATCH] Update credd_scanner.py --- cred_scanner.py | 73 +++++++++++++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 26 deletions(-) diff --git a/cred_scanner.py b/cred_scanner.py index e72cdcc..d3365b3 100644 --- a/cred_scanner.py +++ b/cred_scanner.py @@ -3,33 +3,54 @@ import sys import click +EXCLUDED_DIRS = {'.git', '__pycache__', 'venv'} +ALLOWED_EXTENSIONS = {'.py', '.txt', '.env', '.cfg', '.json', '.yaml', '.yml'} + +AWS_KEY_PATTERN = r'(?