diff --git a/src/iac_scan_runner/compatibility.py b/src/iac_scan_runner/compatibility.py index 8202ecffa657c6696e914fd2377d67f29fe90ec6..1b818f03f3a8a067fc985e6f1a9af0626d289ec4 100644 --- a/src/iac_scan_runner/compatibility.py +++ b/src/iac_scan_runner/compatibility.py @@ -13,7 +13,7 @@ class Compatibility: "js": ["es-lint", "ts-lint"], "html": ["htmlhint"], "docker": ["hadolint"], - "other": [], + "other": ["git-leaks", "git-secrets"], } def __init__(self): diff --git a/src/iac_scan_runner/results_summary.py b/src/iac_scan_runner/results_summary.py index ba71ffde7289faa22cebf2248ab09c274598d208..686a845a468e0a9392119ac90948f632b8619455 100644 --- a/src/iac_scan_runner/results_summary.py +++ b/src/iac_scan_runner/results_summary.py @@ -87,6 +87,14 @@ class ResultsSummary: self.outcomes[check]["status"] = "Problems" return "Problems" + elif check == "shellcheck": + if outcome == "": + self.outcomes[check]["status"] = "Passed" + return "Passed" + else: + self.outcomes[check]["status"] = "Problems" + return "Problems" + elif check == "es-lint": if outcome.find("wrong")>-1: self.outcomes[check]["status"] = "Problems" @@ -111,6 +119,14 @@ class ResultsSummary: self.outcomes[check]["status"] = "Problems" return "Problems" + elif check == "bandit": + if outcome.find("No issues identified.")>-1: + self.outcomes[check]["status"] = "Passed" + return "Passed" + else: + self.outcomes[check]["status"] = "Problems" + return "Problems" + elif check == "hadolint": if outcome=="": self.outcomes[check]["status"] = "Passed"