mirror of
https://github.com/vee1e/capa-rules.git
synced 2026-09-01 19:07:15 +00:00
tests: better detect rule name
from https://github.com/mandiant/capa-rules/pull/647
This commit is contained in:
parent
63b63f856d
commit
5ea634af7f
1 changed files with 1 additions and 1 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
cd rules/
|
||||
for changed_file in ${{ steps.files.outputs.added_modified }} ${{ steps.files.outputs.renamed }}; do
|
||||
if [[ ! $changed_file =~ .git|.md ]]; then
|
||||
tag=$(grep 'name:' $changed_file | sed 's/^.*: //')
|
||||
tag=$(grep '\sname:' $changed_file | sed 's/^.*: //')
|
||||
python ../scripts/lint.py --thorough -t "$tag" -v .
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue