Skip to content

Commit 497ac50

Browse files
authored
ci: disable AppArmor on daily and static workflows (#513)
1 parent 3e183a9 commit 497ac50

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/daily.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
test:
2020
runs-on: ubuntu-latest
2121
steps:
22+
- name: Disable AppArmor
23+
if: runner.os == 'Linux'
24+
run: |
25+
# Disable AppArmor for Ubuntu 23.10+.
26+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
27+
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
2228
- uses: actions/checkout@v4
2329
- uses: actions/setup-go@v5
2430
with:
@@ -41,6 +47,12 @@ jobs:
4147
test-dev:
4248
runs-on: ubuntu-latest
4349
steps:
50+
- name: Disable AppArmor
51+
if: runner.os == 'Linux'
52+
run: |
53+
# Disable AppArmor for Ubuntu 23.10+.
54+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
55+
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
4456
- uses: actions/checkout@v4
4557
with:
4658
ref: dev

.github/workflows/static.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
url: ${{ steps.deployment.outputs.page_url }}
2323
runs-on: ubuntu-latest
2424
steps:
25+
- name: Disable AppArmor
26+
if: runner.os == 'Linux'
27+
run: |
28+
# Disable AppArmor for Ubuntu 23.10+.
29+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
30+
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
2531
- name: Checkout
2632
uses: actions/checkout@v4
2733
- name: Setup Pages

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy