From cb99feb10008f3b66bab2ba3c982adb58992413b Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Tue, 1 Oct 2024 20:13:23 -0700 Subject: [PATCH] add config to pa11y to workaround github actions issue fixes #1932 --- tasks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 478f74da3..8de1dab7e 100644 --- a/tasks.py +++ b/tasks.py @@ -41,7 +41,14 @@ def generate_pa11y_config_from_sitemap(): urls += [url["loc"] for url in xml_sitemap["urlset"]["url"]] with open(CONFIG_FILENAME, "w") as f: - f.write(json.dumps({"urls": urls})) + f.write( + json.dumps( + { + "defaults": {"chromeLaunchConfig": {"args": ["--no-sandbox"]}}, + "urls": urls, + } + ) + ) def output_file(file):