Skip to content
Snippets Groups Projects
Commit 8b5ef8bb authored by nenad.petrovic@xlab.si's avatar nenad.petrovic@xlab.si Committed by Mati(ja)c Cankar
Browse files

Deleted print statements and other minor fixes

parent cae28a55
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ class Compatibility:
# TODO: This matrix should be revised and extended, it is just a proof of concept here as for now
compatibility_matrix = {
"terraform": ["tfsec", "tflint", "terrascan", "git-leaks", "git-secrets"],
"yaml": ["git-leaks", "yamllint", "git-leaks", "git-secrets"],
"yaml": ["git-leaks", "yamllint", "git-secrets"],
"shell": ["shellcheck", "git-leaks", "git-secrets"],
"python": ["pylint", "bandit", "pyup-safety"],
"ansible": ["ansible-lint", "steampunk-scanner"],
......
......@@ -141,13 +141,15 @@ class ScanRunner:
os.mkdir(dir_name)
self.results_summary.outcomes = dict()
self.compatibility_matrix.scanned_files = dict()
compatible_checks = self.compatibility_matrix.get_all_compatible_checks(self.iac_dir)
print(compatible_checks)
non_compatible_checks = []
scan_output = {}
if selected_checks:
if selected_checks and selected_checks!="":
for selected_check in selected_checks:
check = self.iac_checks[selected_check]
if check.enabled:
......@@ -163,12 +165,9 @@ class ScanRunner:
self.results_summary.dump_outcomes(random_uuid)
self.results_summary.generate_html_prioritized(random_uuid)
else:
print("Else")
for iac_check in self.iac_checks.values():
if iac_check.enabled:
if iac_check.name in compatible_checks:
print("run")
print(iac_check.name)
check_output = iac_check.run(self.iac_dir)
scan_output[iac_check.name] = check_output.to_dict()
write_string_to_file(iac_check.name, dir_name, scan_output[iac_check.name]["output"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment