]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: fix authors check with special characters
authorJason Ish <jason.ish@oisf.net>
Tue, 13 Feb 2024 17:57:02 +0000 (11:57 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 14 Feb 2024 06:04:28 +0000 (07:04 +0100)
Dependabot is always getting flagged as a new author even tho it uses
a consistent author of:

dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

But this doesn't work with plain grep. Fix by telling grep to treat
the value as a fixed string instead of a regular expression.

.github/workflows/authors.yml

index e4b0c563c7c3b7876dd93ccda89c28526bf3594d..242cadd181a4ca4f892d4e38f3dbea21e5145c53 100644 (file)
@@ -29,7 +29,7 @@ jobs:
           touch new-authors.txt
           while read -r author; do
              echo "Checking author: ${author}"
-             if ! grep -q "^${author}\$" authors.txt; then
+             if ! grep -qFx "${author}" authors.txt; then
                  echo "ERROR: ${author} NOT FOUND"
                  echo "::warning ::New author found: ${author}"
                  echo "${author}" >> new-authors.txt