From 0768f6fed0d66eb0dd7543b3928d14ed4de99de9 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Wed, 11 Dec 2024 12:17:49 -0800 Subject: [PATCH] Change local sandbox permissions --- .github/workflows/testing_dev_e2e_with_live_services.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing_dev_e2e_with_live_services.yml b/.github/workflows/testing_dev_e2e_with_live_services.yml index 8367a8df7..6778d5bf3 100644 --- a/.github/workflows/testing_dev_e2e_with_live_services.yml +++ b/.github/workflows/testing_dev_e2e_with_live_services.yml @@ -86,7 +86,12 @@ jobs: - if: matrix.os == 'ubuntu-latest' name: Run tests with xvfb - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run coverage:tutorial + run: | + # Adjust Chrome sandbox (used by Puppeteer) owner and permissions to bypass Ubuntu 24.04's + # new restrictions for AppImage apps. https://github.com/electron/electron/issues/42510 + sudo chown root ./node_modules/electron/dist/chrome-sandbox + sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox + xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run coverage:tutorial - name: Archive E2E Test Screenshots uses: actions/upload-artifact@v4