Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pazbechor committed Jul 21, 2024
1 parent cca6fe5 commit ad16c2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions checkov/secrets/plugins/custom_regex_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ def analyze_line(
not self.multiline_regex_supported_file_types or \
not any([filename.endswith(str(file_type)) for file_type in self.multiline_regex_supported_file_types]) or \
not 0 < get_file_size_safe(filename) < CustomRegexDetector.MAX_FILE_SIZE:
file_content = read_file_safe(filename)
if not file_content:
return output
return output

file_content = read_file_safe(filename)
if not file_content:
return output

self._find_potential_secret(
filename=filename,
Expand Down

0 comments on commit ad16c2e

Please sign in to comment.