chainguard-dev / malcontent

#supply #chain #attack #detection
Apache License 2.0
446 stars 31 forks source link

Format rule files with yara-x and add Workflow Check #546

Closed egibs closed 2 weeks ago

egibs commented 2 weeks ago

As of yara-x v0.10.0, there is now a fmt command which will keep all of our rule formatting consistent.

This PR runs yr fmt on all of our first-party rules and also adds a quick Workflow Check to fail if the formatting command updates files and results in a dirty git state.