diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 8efcd81f5..6054de1b7 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -15,15 +15,18 @@ concurrency: jobs: check: runs-on: ubuntu-latest - container: - image: docker.gitea.com/runner-images:ubuntu-latest - # Docker's default seccomp policy blocks the extension's user/network namespaces. - options: --security-opt seccomp=unconfined steps: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Verify extension namespace support + run: | + if [ -e /proc/sys/kernel/apparmor_restrict_unprivileged_userns ]; then + sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 + fi + unshare --user --map-root-user --net true + - uses: actions/setup-go@v5 with: go-version-file: go.mod @@ -66,13 +69,6 @@ jobs: git branch main origin/main fi - - name: Verify extension namespace support - run: | - if [ -e /proc/sys/kernel/apparmor_restrict_unprivileged_userns ]; then - sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 - fi - unshare --user --map-root-user --net true - - name: Run definitive gate run: | task check