Skip to content

Commit 220ea06

Browse files
committed
ci: workaround new ubuntu 23 security issue for chromium
1 parent c813b02 commit 220ea06

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
- run: yarn type-check
3939
- run: yarn build-all
4040

41+
# Since Ubuntu 23, dev builds of Chromium need this.
42+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
43+
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
44+
4145
# Run pptr tests using ToT Chrome instead of stable default.
4246
- name: Install Chrome ToT
4347
run: bash $GITHUB_WORKSPACE/core/scripts/download-chrome.sh

.github/workflows/devtools.yml

+4
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ jobs:
160160
- run: yarn build-report
161161
working-directory: ${{ github.workspace }}/lighthouse
162162

163+
# Since Ubuntu 23, dev builds of Chromium need this.
164+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
165+
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
166+
163167
- name: Install Chrome ToT
164168
run: bash ${{ github.workspace }}/lighthouse/core/scripts/download-chrome.sh
165169

.github/workflows/smoke.yml

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
with:
4242
node-version: 18.x
4343

44+
# Since Ubuntu 23, dev builds of Chromium need this.
45+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
46+
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
47+
4448
# Chrome Stable is already installed by default.
4549
- name: Install Chrome ToT
4650
if: matrix.chrome-channel == 'ToT'
@@ -151,6 +155,10 @@ jobs:
151155
- run: yarn build-report
152156
- run: yarn build-devtools
153157

158+
# Since Ubuntu 23, dev builds of Chromium need this.
159+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
160+
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
161+
154162
- name: Install Chrome ToT
155163
run: bash $GITHUB_WORKSPACE/core/scripts/download-chrome.sh
156164

.github/workflows/unit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
- run: yarn build-report
5454
- run: yarn reset-link
5555

56+
# Since Ubuntu 23, dev builds of Chromium need this.
57+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
58+
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
59+
5660
# Run pptr tests using ToT Chrome instead of stable default.
5761
- name: Install Chrome ToT
5862
run: bash $GITHUB_WORKSPACE/core/scripts/download-chrome.sh

0 commit comments

Comments
 (0)