Skip to content

Commit ca74864

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 9475bb4 commit ca74864

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
@@ -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)