Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Use specific Playwright container for a11y jobs (#8696)

James Bruntonf1b20292ae21
diff --git a/.github/workflows/build-enterprise.yml b/.github/workflows/build-enterprise.yml
index 3d239a28e1..083e76e890 100644
--- a/.github/workflows/build-enterprise.yml
+++ b/.github/workflows/build-enterprise.yml
@@ -50,7 +50,7 @@ jobs:
# so the suite can't boot premium and would fail. See the header comment.
# GitHub reports the skipped reusable workflow as success.
if: needs.pick.outputs.is_fork != 'true'
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
timeout-minutes: 45
env:
PREMIUM_KEY: ${{ secrets.PREMIUM_KEY_ENTERPRISE }}
diff --git a/.github/workflows/e2e-live.yml b/.github/workflows/e2e-live.yml
index 541412243c..91254704a7 100644
--- a/.github/workflows/e2e-live.yml
+++ b/.github/workflows/e2e-live.yml
@@ -14,7 +14,7 @@ jobs:
environment:
name: ci-unsigned
deployment: false
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Harden Runner
diff --git a/.github/workflows/frontend-a11y.yml b/.github/workflows/frontend-a11y.yml
index 23452cb424..d998958b3a 100644
--- a/.github/workflows/frontend-a11y.yml
+++ b/.github/workflows/frontend-a11y.yml
@@ -18,6 +18,8 @@ permissions:
jobs:
frontend-a11y:
runs-on: ubuntu-latest
+ container:
+ image: mcr.microsoft.com/playwright:v1.58.2-noble@sha256:6446946a1d9fd62d9ae501312a2d76a43ee688542b21622056a372959b65d63d
timeout-minutes: 25
steps:
- name: Harden Runner
@@ -31,6 +33,8 @@ jobs:
fetch-depth: 0
# Blobs load lazily; full-history fetch otherwise pulls every branch's files.
filter: blob:none
+ - name: Trust the workspace for git
+ run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Set up Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 03e4659476..906c5bbc9a 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -39,6 +39,8 @@ jobs:
# entry when the slowest leg passes about 15 minutes.
shard: ["1/4", "2/4", "3/4", "4/4"]
runs-on: ubuntu-latest
+ container:
+ image: mcr.microsoft.com/playwright:v1.58.2-noble@sha256:6446946a1d9fd62d9ae501312a2d76a43ee688542b21622056a372959b65d63d
timeout-minutes: 30
steps:
- name: Harden the runner (Audit all outbound calls)
@@ -49,6 +51,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - name: Trust the workspace for git
+ run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
+
- name: Set up Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with: