Skip to content

Commit d3053e1

Browse files
committed
Run makepkg as non-root user
1 parent f917317 commit d3053e1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/aur-update.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ jobs:
145145
run: |
146146
# Use Arch Linux container to run makepkg
147147
docker run --rm -v "$PWD/aur-rustnet-bin:/pkg" archlinux:latest bash -c '
148+
pacman -Sy --noconfirm binutils fakeroot sudo &&
149+
useradd -m builder &&
150+
chown -R builder:builder /pkg &&
148151
cd /pkg &&
149-
pacman -Sy --noconfirm binutils fakeroot &&
150-
makepkg --printsrcinfo > .SRCINFO
152+
sudo -u builder makepkg --printsrcinfo > .SRCINFO
151153
'
152154
153155
echo ".SRCINFO generated successfully"

0 commit comments

Comments
 (0)