2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Add build user for circleci instead of running as root.

This commit is contained in:
Todd C. Miller 2021-10-04 19:13:10 -06:00
parent 8d98a447c5
commit 3fa025281f
8 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@ jobs:
build: build:
docker: docker:
- image: docker.io/sudoproject/debian:latest - image: docker.io/sudoproject/debian:latest
user: build
steps: steps:
- checkout - checkout
- run: - run:
@ -18,6 +19,7 @@ jobs:
test: test:
docker: docker:
- image: docker.io/sudoproject/debian:latest - image: docker.io/sudoproject/debian:latest
user: build
steps: steps:
# Reuse the workspace from the build job # Reuse the workspace from the build job
- attach_workspace: - attach_workspace:

View File

@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \ libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
libaudit-dev libssl-dev python3-dev libpython3-dev \ libaudit-dev libssl-dev python3-dev libpython3-dev \
file lsb-release fakeroot procps git ssh openssh-client file lsb-release fakeroot procps git ssh openssh-client
RUN useradd -ms /bin/bash build

View File

@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \ libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
libaudit-dev libssl-dev python3-dev libpython3-dev \ libaudit-dev libssl-dev python3-dev libpython3-dev \
file lsb-release fakeroot procps git ssh openssh-client file lsb-release fakeroot procps git ssh openssh-client
RUN useradd -ms /bin/bash build

View File

@ -5,3 +5,4 @@ RUN dnf -y install audit-libs-devel cyrus-sasl-devel glibc-devel \
libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \ libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \
python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \ python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \
procps which procps which
RUN useradd -ms /bin/bash build

View File

@ -5,3 +5,4 @@ RUN dnf -y install audit-libs-devel cyrus-sasl-devel glibc-devel \
libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \ libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \
python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \ python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \
procps which procps which
RUN useradd -ms /bin/bash build

View File

@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \ libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
libaudit-dev libssl-dev python3-dev libpython3-dev \ libaudit-dev libssl-dev python3-dev libpython3-dev \
file lsb-release fakeroot procps git ssh openssh-client file lsb-release fakeroot procps git ssh openssh-client
RUN useradd -ms /bin/bash build

View File

@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \ libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
libaudit-dev libssl-dev python3-dev libpython3-dev \ libaudit-dev libssl-dev python3-dev libpython3-dev \
file lsb-release fakeroot procps git ssh openssh-client file lsb-release fakeroot procps git ssh openssh-client
RUN useradd -ms /bin/bash build

View File

@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \ libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
libaudit-dev libssl-dev python3-dev libpython3-dev \ libaudit-dev libssl-dev python3-dev libpython3-dev \
file lsb-release fakeroot procps git ssh openssh-client file lsb-release fakeroot procps git ssh openssh-client
RUN useradd -ms /bin/bash build