[llvm] [Github][CI] Add default gha user for tooling containers (PR #164294)
Baranov Victor via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 11:17:54 PDT 2025
================
@@ -37,6 +37,11 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
+# Create a new user with id 1001 as that is the user id that
+# Github Actions uses to perform the checkout action.
+RUN useradd gha -u 1001 -m -s /bin/bash
+RUN adduser gha sudo
+RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
----------------
vbvictor wrote:
I didn't set `USER gha` right away because we still need to install packages as root in `ci-container-code-format`/`ci-container-code-lint` containers
https://github.com/llvm/llvm-project/pull/164294
More information about the llvm-commits
mailing list