summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2024-02-18 12:59:48 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-02-27 19:28:19 +0000
commitdae8c29dab546fad2801e70967855a9f6ae14ae0 (patch)
treec8e16062fcc59f9542ccf74a63875f42af5eefe4
parente59a40b92ce92f17e3d8d99917868c5678d408b7 (diff)
downloadedk2-dae8c29dab546fad2801e70967855a9f6ae14ae0.tar.gz
edk2-dae8c29dab546fad2801e70967855a9f6ae14ae0.tar.bz2
edk2-dae8c29dab546fad2801e70967855a9f6ae14ae0.zip
BaseTools/Scripts/PatchCheck: Update Author checks
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4680 * Reject patches that match Author email "devel@edk2.groups.io" * Update the current check for " via Groups.Io" to perform a case insensitive match. It appears that groups.io has changed the format of this string to use all lower case. Cc: Rebecca Cran <rebecca@bsdio.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
-rwxr-xr-xBaseTools/Scripts/PatchCheck.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py
index 1675dcbd73..e600e0be44 100755
--- a/BaseTools/Scripts/PatchCheck.py
+++ b/BaseTools/Scripts/PatchCheck.py
@@ -85,7 +85,11 @@ class EmailAddressCheck:
self.error("The email address cannot contain a space: " +
mo.group(3))
- if ' via Groups.Io' in name and mo.group(3).endswith('@groups.io'):
+ if mo.group(3) == 'devel@edk2.groups.io':
+ self.error("Email rewritten by lists DMARC / DKIM / SPF: " +
+ email)
+
+ if ' via groups.io' in name.lower() and mo.group(3).endswith('@groups.io'):
self.error("Email rewritten by lists DMARC / DKIM / SPF: " +
email)