From 5ea634af7f4cd5dccda60fb84f23f79bf599907a Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Tue, 3 Jan 2023 11:41:04 +0100 Subject: [PATCH] tests: better detect rule name from https://github.com/mandiant/capa-rules/pull/647 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7768cabc..07823bc4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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