From: Jason Ish Date: Tue, 13 Feb 2024 17:57:02 +0000 (-0600) Subject: github-ci: fix authors check with special characters X-Git-Tag: suricata-8.0.0-beta1~1755 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2242d10fa0ce503ce03a2a99edc21c71925b34bf;p=thirdparty%2Fsuricata.git github-ci: fix authors check with special characters 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. --- diff --git a/.github/workflows/authors.yml b/.github/workflows/authors.yml index e4b0c563c7..242cadd181 100644 --- a/.github/workflows/authors.yml +++ b/.github/workflows/authors.yml @@ -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