Skip to content

Commit

Permalink
overwrite cache and allowed binary files by default in sensitive_stri…
Browse files Browse the repository at this point in the history
…ngs.py
  • Loading branch information
bbean23 committed Jul 26, 2024
1 parent df2e8da commit e087e96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/scripts/sensitive_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ def update_allowed_binaries_csv(self):
path, name, ext = ft.path_components(self.allowed_binary_files_csv)
self.allowed_binary_files = sorted(self.allowed_binary_files)

self.allowed_binary_files[0].to_csv("Allowed Binary Files", path, name, rows=self.allowed_binary_files)
self.allowed_binary_files[0].to_csv(
"Allowed Binary Files", path, name, rows=self.allowed_binary_files, overwrite=True
)

def search_files(self):
self._init_files_lists()
Expand Down Expand Up @@ -547,7 +549,7 @@ def search_files(self):
path, name, ext = ft.path_components(self.cache_file_csv)
ft.create_directories_if_necessary(path)
self.new_cached_cleared_files[0].to_csv(
"Cleared Files Cache", path, name, rows=self.new_cached_cleared_files
"Cleared Files Cache", path, name, rows=self.new_cached_cleared_files, overwrite=True
)

# Executive summary
Expand Down

0 comments on commit e087e96

Please sign in to comment.