Skip to content

Commit 4ab6c1a

Browse files
committed
fix: run makepkg as non-root user in AUR publish step
1 parent 87f4498 commit 4ab6c1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ jobs:
536536
- name: Generate .SRCINFO
537537
uses: docker://archlinux:latest
538538
with:
539-
args: bash -c "pacman -Sy --noconfirm pacman-contrib && cd aur/goanime && makepkg --printsrcinfo > .SRCINFO && cat .SRCINFO"
539+
args: bash -c "pacman -Sy --noconfirm pacman-contrib base-devel && useradd -m builder && chown -R builder:builder /github/workspace && su builder -c 'cd /github/workspace/aur/goanime && makepkg --printsrcinfo > .SRCINFO && cat .SRCINFO'"
540540

541541
- name: Publish to AUR
542542
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1

0 commit comments

Comments
 (0)