Skip to content

Fix pipeline (Ubuntu restricted user namespaces) #5

Fix pipeline (Ubuntu restricted user namespaces)

Fix pipeline (Ubuntu restricted user namespaces) #5

Workflow file for this run

name: Run Tests
on: push
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version-file: 'go.mod'
# cf. https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
- name: Allow Unconfined NS
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
- name: Run Tests
run: make test