Skip to content

Commit

Permalink
add non sudo user to run script
Browse files Browse the repository at this point in the history
  • Loading branch information
MialLewis committed Dec 15, 2023
1 parent 44f384f commit 5afc779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runner/ansible/roles/runner/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
volumes:
- /tmp/setup.sh:/home/setup.sh
command: /home/setup.sh
become: no
user: nonroot

- name: Remove setup script
ansible.builtin.file:
Expand Down
2 changes: 1 addition & 1 deletion runner/docker/runner.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ RUN apt-get update && apt-get install -y \
tar \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /actions-runner
RUN useradd -m nonroot

0 comments on commit 5afc779

Please sign in to comment.