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>
This commit is contained in:
Frank Breedijk
2024-01-10 17:14:31 +01:00
committed by GitHub
parent c3463f8bd0
commit 1a223650fc
@@ -111,7 +111,8 @@ WINDOWS_SECURITY_SPECIAL_PROCESS_CREATION_FIELDS = ["SubjectUserSid", "SubjectUs
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)