Skip to content

Commit

Permalink
Merge PR SigmaHQ#4667 from @MrSeccubus - Fix error in extension check…
Browse files Browse the repository at this point in the history
… 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 <[email protected]>
  • Loading branch information
MrSeccubus and nasbench authored Jan 10, 2024
1 parent c3463f8 commit 1a22365
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion documentation/tools/sigma-logsource-checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a22365

Please sign in to comment.