diff options
-rw-r--r-- | anteater/src/patch_scan.py | 3 | ||||
-rw-r--r-- | anteater/src/project_scan.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/anteater/src/patch_scan.py b/anteater/src/patch_scan.py index 133b0ff..3097d00 100644 --- a/anteater/src/patch_scan.py +++ b/anteater/src/patch_scan.py @@ -102,6 +102,9 @@ def scan_patch(project, patch_file, binary_list, file_audit_list, as gate_report: gate_report.write('Non Whitelisted Binary file: {0}\n'. format(patch_file)) + gate_report.write('Submit patch with the following hash: {0}\n'. + format(hasher.hexdigest())) + else: # Check file names / extensions if file_audit_list.search(patch_file) and not \ diff --git a/anteater/src/project_scan.py b/anteater/src/project_scan.py index 9bb3539..3a04a83 100644 --- a/anteater/src/project_scan.py +++ b/anteater/src/project_scan.py @@ -111,6 +111,9 @@ def scan_file(project_dir, project, binary_list, file_audit_list, "a") as gate_report: gate_report.write('Non Whitelisted Binary: {0}\n'. format(full_path)) + gate_report.write( + 'Submit patch with the following hash: {0}\n'. + format(hasher.hexdigest())) else: if not items.endswith(tuple(file_ignore)): |