Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/update-published-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
../venv/bin/pip install . --group dev

- name: Install script dependencies
run: venv/bin/pip install tabulate jmespath pyyaml
run: venv/bin/pip install tabulate jmespath pyyaml ruamel.yaml

# -----------------------------------------------------------------------
# 4. Run the engine for every Published rule, writing actual results.csv
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/validate-yaml-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Validate YAML Formatting
on:
pull_request:
paths:
- 'Unpublished/**/rule.yml'
- 'Published/**/rule.yml'
- "Unpublished/**/rule.yml"
- "Published/**/rule.yml"
types: [opened, synchronize, reopened]
workflow_dispatch: {}
jobs:
Expand All @@ -20,9 +20,8 @@ jobs:
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pyyaml
run: pip install pyyaml
python-version: "3.12"
- run: pip install ruamel.yaml
- name: Detect changed rule.yml files
id: changed-files
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ repos:
entry: python scripts/sort_yaml.py --check
types: [yaml]
files: ".*/rule\\.yml$"
additional_dependencies: [pyyaml]
additional_dependencies: [ruamel.yaml]
pass_filenames: true