From ee4e812e7f771a19538af5cd86b5aac17005b67c Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 25 Mar 2023 13:43:01 +0100 Subject: [PATCH] use sudo instead of su --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9d1d3e3..246b4bb 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,7 @@ runs: with: entrypoint: bash args: | - -c 'useradd -m user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && chmod 777 . && su -c "makepkg -s" - user' + -c 'useradd -m user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && chmod 777 . && sudo -u user -- makepkg -s' - name: Ensure .SRCINFO is up to date uses: docker://docker.io/library/archlinux:base-devel