fix: run makepkg as non-root user in release-aur workflow

This commit is contained in:
vicrodh committed 2026-01-12 18:04:47 -06:00
1 parent f42e63bcb3
commit 118d6a7202
1 file changed
+4 -2
+4 -2
View File
@@ -84,8 +84,10 @@ jobs:
run: |
cd /tmp/aur-qbz-bin
docker run --rm -v "$PWD":/pkg -w /pkg archlinux:latest bash -c "
pacman -Sy --noconfirm pacman-contrib
makepkg --printsrcinfo > .SRCINFO
pacman -Sy --noconfirm pacman-contrib sudo
useradd -m builder
chown -R builder:builder /pkg
sudo -u builder makepkg --printsrcinfo > .SRCINFO
"
cat .SRCINFO