diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 0b6c5dd98ed..e76794116bf 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -113,7 +113,10 @@ jobs: - name: Run integration tests run: | - sudo mkosi sandbox \ + # --preserve-env makes sure all the github actions environment variables are propagated which are + # used in integration-test-wrapper.py to construct the `gh` command line to download the journals + # of failed tests. + sudo --preserve-env mkosi sandbox \ meson test \ -C build \ --no-rebuild \ diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 7a4c7b6d16e..6f6df0ddf93 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -209,7 +209,10 @@ jobs: MAX_LINES=() fi - sudo mkosi sandbox \ + # --preserve-env makes sure all the github actions environment variables are propagated which are + # used in integration-test-wrapper.py to construct the `gh` command line to download the journals + # of failed tests. + sudo --preserve-env mkosi sandbox \ env \ TEST_PREFER_QEMU=${{ matrix.vm }} \ TEST_SKIP=${{ matrix.skip }} \