Skip to content

Commit 5a0396d

Browse files
committed
ci(fix): fix build user permissions error
1 parent ce187e4 commit 5a0396d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ jobs:
7575
archlinux:base-devel \
7676
bash -lc '
7777
set -euo pipefail
78-
pacman -Syu --noconfirm --needed base-devel bash coreutils tar zstd
79-
chmod -R a+rwX /work
80-
su nobody -s /bin/bash -c "cd /work/packaging/arch && makepkg --nodeps --noconfirm -f"
78+
# Avoid relying on distro default unprivileged accounts (for example `nobody`)
79+
# because some base images can mark them as expired.
80+
useradd -m -U builder
81+
chown -R builder:builder /work
82+
su builder -s /bin/bash -c "cd /work/packaging/arch && makepkg --nodeps --noconfirm -f"
8183
'
8284
8385
- name: Capture package path

0 commit comments

Comments
 (0)