Skip to content

Commit 1786ca9

Browse files
committed
ci: allow Chrome sandbox for browser contract tests
1 parent e89f28e commit 1786ca9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ jobs:
5353
- name: Build website
5454
run: npm run build
5555

56+
# Chrome cannot build its sandbox on ubuntu-24.04 (AppArmor restricts
57+
# unprivileged user namespaces for Puppeteer's downloaded Chrome for
58+
# Testing). Ephemeral root-accessible CI VMs are the sanctioned case for
59+
# disabling this knob — see chromium docs apparmor-userns-restrictions.md.
60+
- name: Allow Chrome sandbox (AppArmor userns restriction on ubuntu-24.04)
61+
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
62+
5663
- name: Run browser contract tests against the built site
5764
run: npm run test:browser-contracts
5865
env:

0 commit comments

Comments
 (0)