Skip to content

Commit

Permalink
fix: restrict sudoers file
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Nov 30, 2023
1 parent 80ca6df commit fd5775a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ RUN set -ex; \
true

# allow sudo without password
RUN echo "$USER_NAME ALL=NOPASSWD:ALL" > /etc/sudoers.d/$USER_NAME; sudo id
RUN set e; \
echo "$USER_NAME ALL = NOPASSWD: ALL" > /etc/sudoers.d/$USER_NAME; \
chmod 0440 /etc/sudoers.d/$USERNAME; \
sudo id; \
true

# renovate: datasource=github-tags packageName=git/git
RUN install-tool git v2.43.0
Expand Down

0 comments on commit fd5775a

Please sign in to comment.