Skip to content

Commit

Permalink
fixup! ci: upgrade ubuntu runners for reproducible builds
Browse files Browse the repository at this point in the history
disable apparmor
  • Loading branch information
burgerdev committed Oct 24, 2024
1 parent 7824f1e commit 76e8d71
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/reproducible-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ jobs:
binary: "osimage-${{ matrix.target }}-${{ matrix.runner }}"
runs-on: ${{ matrix.runner }}
steps:
- name: Remove security hardening features
if: matrix.runner == 'ubuntu-24.04'
shell: bash
run: |
sysctl --ignore --write kernel.apparmor_restrict_unprivileged_unconfined=0
sysctl --ignore --write kernel.apparmor_restrict_unprivileged_userns=0
# This command fails with a non-zero error code even though it unloads the apparmor profiles.
# https://gitlab.com/apparmor/apparmor/-/issues/403
aa-teardown || true
apt-get remove -y apparmor
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
Expand Down

0 comments on commit 76e8d71

Please sign in to comment.