From 1a223650fc8f5f95aafeeaa9e165d931b442d9f8 Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Wed, 10 Jan 2024 17:14:31 +0100 Subject: [PATCH] Merge PR #4667 from @MrSeccubus - Fix error in extension check in `sigma-logsource-checker.py` chore: add additional checks to the `sigma-logsource-checker.py` so that it only cares about yaml files --------- Co-authored-by: nasbench <8741929+nasbench@users.noreply.github.com> --- documentation/tools/sigma-logsource-checker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/tools/sigma-logsource-checker.py b/documentation/tools/sigma-logsource-checker.py index 440ec5217ba..df63727286e 100644 --- a/documentation/tools/sigma-logsource-checker.py +++ b/documentation/tools/sigma-logsource-checker.py @@ -111,7 +111,8 @@ def yield_next_rule_file_path(path_to_rules: str) -> str: for root, _, files in os.walk(path_to_rules): for file in files: - yield os.path.join(root, file) + if file.endswith(".yml"): + yield os.path.join(root, file) def get_rule_part(file_path: str, part_name: str): yaml_dicts = get_rule_yaml(file_path)