Skip to content

Commit 48d6b12

Browse files
Merge pull request #1430 from w3c/apparmor
Disable AppArmor to run Puppeteer
2 parents 734ec92 + dc122de commit 48d6b12

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: .github/workflows/update-ed.yml

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ jobs:
77
update:
88
runs-on: ubuntu-latest
99
steps:
10+
# Starting with Ubuntu 23+, a security feature prevents running Puppeteer
11+
# by default. It needs to be disabled. Using the "easiest" option, see:
12+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
13+
# https://github.com/puppeteer/puppeteer/pull/13196/files
14+
- name: Disable AppArmor
15+
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
16+
1017
- name: Checkout repo
1118
uses: actions/checkout@v4
1219

Diff for: .github/workflows/update-tr.yml

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ jobs:
77
update:
88
runs-on: ubuntu-latest
99
steps:
10+
# Starting with Ubuntu 23+, a security feature prevents running Puppeteer
11+
# by default. It needs to be disabled. Using the "easiest" option, see:
12+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
13+
# https://github.com/puppeteer/puppeteer/pull/13196/files
14+
- name: Disable AppArmor
15+
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
16+
1017
- name: Checkout repo
1118
uses: actions/checkout@v4
1219

0 commit comments

Comments
 (0)