File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,14 @@ branding:
6
6
description : Disables AppArmor on the GitHub Actions runner.
7
7
name : Disable AppArmor
8
8
9
+ # We use a shell argument for each step that provides the same guardrails we
10
+ # would have in our bash scripts. The `-Eueo pipefail` sets errtrace, nounset,
11
+ # errexit, and pipefail. The `-x` will print all commands as they are run. We
12
+ # are currently unable to set this as a default (like we can in workflows) so
13
+ # this must be added to each step that runs shell commands. Please see the
14
+ # following GitHub discussion that requests this feature for any status
15
+ # updates: https://github.com/orgs/community/discussions/18597
16
+
9
17
runs :
10
18
using : composite
11
19
steps :
16
24
# https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2093797
17
25
# for more details.
18
26
run : sudo aa-teardown || true
19
- shell : bash
27
+ shell : bash -Eueo pipefail -x {0}
20
28
21
29
- id : disable-apparmor
22
30
name : Disable and stop AppArmor systemd service
23
31
run : sudo systemctl disable --now apparmor.service
24
- shell : bash
32
+ shell : bash -Eueo pipefail -x {0}
You can’t perform that action at this time.
0 commit comments