Skip to content

Commit 067dac4

Browse files
committed
GHA: unset SUDO env vars when calling mkosi build
Otherwise mkosi tries to change user and fails
1 parent c0b78d2 commit 067dac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/mkosi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
run: sudo mkosi summary
149149

150150
- name: Build ${{ matrix.distro }}
151-
run: sudo mkosi --debug --repository-key-check=false
151+
run: sudo env -u SUDO_USER -u SUDO_UID -u SUDO_GID mkosi --debug --repository-key-check=false
152152

153153
- name: Boot ${{ matrix.distro }} systemd-nspawn
154154
run: test "$(sudo mkosi --debug boot 1>&2; echo $?)" -eq 123

0 commit comments

Comments
 (0)