Skip to content

Commit ca4230f

Browse files
committed
Relax sandboxing for darwin due to pre-commit
1 parent 2dd3ac1 commit ca4230f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ jobs:
9191
github_token: ${{ secrets.GITHUB_TOKEN }}
9292
dogfood: ${{ github.event_name == 'workflow_dispatch' && inputs.dogfood || github.event_name != 'workflow_dispatch' }}
9393
# The sandbox would otherwise be disabled by default on Darwin
94-
extra_nix_config: "sandbox = true"
94+
# Unfortunately due to some packages (dotnet), we must set it to relaxed.
95+
extra_nix_config: ${{ matrix.os == 'darwin' && 'sandbox = relaxed' || 'sandbox = true' }}
9596
# Since ubuntu 22.30, unprivileged usernamespaces are no longer allowed to map to the root user:
9697
# https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces
9798
- run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

0 commit comments

Comments
 (0)