Skip to content

Commit 09635e9

Browse files
committed
fix: run makepkg as non-root user during AUR deployment
1 parent fc4282b commit 09635e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
cp $GITHUB_WORKSPACE/openssh-gui-git/PKGBUILD .
8888
8989
docker run --rm -v "$(pwd)":/pkg -w /pkg archlinux:latest \
90-
bash -c "pacman -Sy --noconfirm --needed pacman && makepkg --printsrcinfo > .SRCINFO"
90+
bash -c "useradd -m builder && chown -R builder /pkg && su builder -c 'makepkg --printsrcinfo > .SRCINFO'"
9191
9292
git config user.name "${{ github.repository_owner }}"
9393
git config user.email "${{ github.repository_owner }}@users.noreply.github.com"

0 commit comments

Comments
 (0)