From e08e7ddf55079afaf59756ce7ce63c36119b0ff1 Mon Sep 17 00:00:00 2001
From: Ted Bowman <41201-tedbow@users.noreply.drupalcode.org>
Date: Fri, 5 Apr 2024 15:03:03 +0000
Subject: [PATCH] Issue #3432476 by tedbow: Warn if auto-update script is
 running as root

---
 automatic_updates.services.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/automatic_updates.services.yml b/automatic_updates.services.yml
index d6344fa5bf..645b9c981f 100644
--- a/automatic_updates.services.yml
+++ b/automatic_updates.services.yml
@@ -56,3 +56,6 @@ services:
   Drupal\automatic_updates\CommandExecutor:
     arguments:
       $appRoot: '%app.root%'
+  Drupal\automatic_updates\Validator\ConsoleUserValidator:
+    tags:
+      - { name: event_subscriber }
-- 
GitLab