Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Allow unprivileged user namespaces for the DeepSec Codex sandbox

Rafi546c4541b895
diff --git a/.github/workflows/deepsec-pr.yml b/.github/workflows/deepsec-pr.yml
index 7c77b8ee9c..0d8f981b6d 100644
--- a/.github/workflows/deepsec-pr.yml
+++ b/.github/workflows/deepsec-pr.yml
@@ -71,6 +71,12 @@ jobs:
echo "No in-scope apps/web files to review."
fi
+ # Ubuntu 24.04 blocks unprivileged user namespaces through AppArmor, so
+ # the Codex bubblewrap sandbox cannot start and every shell call fails.
+ - name: Allow the Codex sandbox
+ if: steps.files.outputs.has_files == 'true'
+ run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
+
- name: Review diff
id: deepsec
if: steps.files.outputs.has_files == 'true'