Merged
Conversation
- Add yamlfmt configuration (.yamlfmt) with 4-space indent, LF line endings - Add yamllint configuration (.yamllint) for syntax validation (detections/ only) - Add pre-commit hook for automatic YAML formatting - Add CI validation script with unified error output - Add GitHub Actions workflow for PR validation - Add documentation for setup and usage - Support custom yamlfmt binary path via --yamlfmt-path flag
Contributor
Author
|
Versioning and the CI failure will be addressed after the release. |
Contributor
|
@nasbench - lets add a short update to the main read me as step 2 to install pre commit hook! other than that, LGTM! |
patel-bhavin
reviewed
Feb 6, 2026
detections/application/cisco_duo_admin_login_unusual_browser.yml
Outdated
Show resolved
Hide resolved
Contributor
Author
I have updated the |
Contributor
Author
|
@patel-bhavin things should be green now. The unit-testing will fail due to the big changes. If you can double check again the overall structure and changes. We merge this and then we can run an internal build to see if things broke. Let me know |
Contributor
Author
|
Integration errors found internally were fixed in #3920 |
Contributor
patel-bhavin
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR introduces a new CI, validation scrip and a pre-commit hook for YAML linting and validation.
It uses both
yamllintandyamlfmtto apply and verify yaml formatting and linting.Yamlfmt
We use
yamlfmtto apply formatting. A new config has been added in.yamlfmtthat ensures all the yaml has proper indentation and array nesting.Yamllint
We had to use
yamlfmtsince yamllint's ability/support for nested arrays is tricky to accommodate our format. Hence it's usage is for the other linting functionalities like duplicate keys and what not.Pre-commit Hook
A new pre-commit hook was introduced that apply that yamlfmt with the config to all yaml files sitting in the
detectionsfolder.New CI Job - Yaml Validation
A new CI job was added with a wrapper script
validate_yaml.pythat checks both configs mentioned above are applied.Docs
New documentation has been added describing how to use all of this in the
docs/cifolder.Changed Analytics
All the analytics residing in the
detectionsfolder have been touched and formatted accordingly.In addition to this a custom SPL search beautifying script (local) has been applied to all searches to make them use the
|-notation as well as make them more readable.This is only an initial effort to beautify the SPL. Since it is tricky to solve this for all generically, we will need to iterate on this a bit more.
Note for reviewers inspect the following commits de0d0ff and 734090a to verify the logic of the job and scripts to avoid confusion with the other many changes.