This commit is contained in:
scott smith 2016-12-28 10:10:11 +00:00 committed by GitHub
commit c88b6197ff

View file

@ -29,7 +29,7 @@ def check_file_for_aws_keys(filenames, keys):
for filename in filenames:
with open(filename, 'r') as content:
text_body = content.read()
text_body = content.read().decode('utf-8')
if any(key in text_body for key in keys):
# naively match the entire file, low chance of incorrect collision
bad_files.append(filename)