Skip to content

Commit f52965d

Browse files
committed
GHA: unset SUDO env vars when calling mkosi build
Otherwise mkosi tries to change user and fails (cherry picked from commit 067dac4)
1 parent 0f9ded5 commit f52965d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/mkosi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
run: sudo mkosi genkey
132132

133133
- name: Build ${{ matrix.distro }}
134-
run: sudo mkosi --repository-key-check=false
134+
run: sudo env -u SUDO_USER -u SUDO_UID -u SUDO_GID mkosi --repository-key-check=false
135135

136136
- name: Show ${{ matrix.distro }} image summary
137137
run: sudo mkosi summary

0 commit comments

Comments
 (0)