From 42ec1848691cca2bda214dc471697e94b5559f23 Mon Sep 17 00:00:00 2001
From: cmoineau <cyril.moineau@cea.fr>
Date: Sat, 26 Apr 2025 07:59:43 +0000
Subject: [PATCH] Add back sudo in gitlabci.

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a2e8aa5..b0f641e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -87,5 +87,6 @@ release:pip:ubuntu:
 
   after_script:
     # Ensure all files are owned by the correct user at the end of the job
-    - chown -R $(whoami):$(whoami) .
+    # Note: sudo requires the job to have privileged = true
+    - sudo chown -R $(whoami):$(whoami) .
 
-- 
GitLab