[llvm] [Github][CI] Add default gha user for tooling containers (PR #164294)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 12:10:34 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
----------------
boomanaiden154 wrote:

This should be a comment in the Dockerfile, not in the PR.

https://github.com/llvm/llvm-project/pull/164294


More information about the llvm-commits mailing list