Skip to content

Commit

Permalink
fixup! ci: upgrade ubuntu runners for reproducible builds
Browse files Browse the repository at this point in the history
use sudo
  • Loading branch information
burgerdev committed Oct 24, 2024
1 parent 5340936 commit 20d81f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/reproducible-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,13 @@ jobs:
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
# Taken from https://github.com/systemd/mkosi/blob/fcacc94b9f72d9b6b1f03779b0c6e07209ceb54b/action.yaml#L42-L57.
sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_unconfined=0
sudo 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
sudo aa-teardown || true
sudo apt-get remove -y apparmor
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down

0 comments on commit 20d81f4

Please sign in to comment.