From 3bc34071a6f051eb4f8fe907f56772c5f4d15ab1 Mon Sep 17 00:00:00 2001 From: Gutierrez Soto Jhosepmyr Orlando Date: Thu, 9 Jul 2026 23:49:29 -0500 Subject: [PATCH] fix: pass Chromium sandbox flags to the HTML render step md-to-pdf --as-html still launches Puppeteer/Chromium under the hood, but this step was missing the --no-sandbox/--disable-setuid-sandbox launch options already used by the PDF step. On GitHub Actions runners (no usable user namespace sandbox), Chromium crashed with 'No usable sandbox', breaking the CI run on push to main. --- .github/workflows/generate-pdf.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index cee0149..9b42886 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -57,7 +57,8 @@ jobs: - name: Render full HTML for Word conversion run: | - md-to-pdf README.md --as-html --basedir . + md-to-pdf README.md --as-html --basedir . \ + --launch-options '{"args":["--no-sandbox","--disable-setuid-sandbox"]}' mv README.html report-source.html - name: Generate Word document