Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

ci(os): clear the runner's insecure zsh completion folders

bubu-dudu098208e7e90f
diff --git a/.github/workflows/os-runtime.yml b/.github/workflows/os-runtime.yml
index 446daf5d5..e6920333c 100644
--- a/.github/workflows/os-runtime.yml
+++ b/.github/workflows/os-runtime.yml
@@ -44,6 +44,15 @@ jobs:
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends musl-tools libevent-dev libncurses-dev libutf8proc-dev bison zsh
+ # Ubuntu's global zshrc runs compinit, which stops at "insecure directories ... continue [y]
+ # or abort compinit [n]?" for the runner image's group-writable completion folders; a zsh
+ # login shell under test then waits there (as cli-e2e.yml found). Fixed as zsh says.
+ insecure=$(zsh -fc 'autoload -U compaudit && compaudit' 2>/dev/null | grep '^/' | sort -u || true)
+ if [ -n "$insecure" ]; then
+ echo "$insecure" | xargs sudo chown root:root
+ echo "$insecure" | xargs sudo chmod g-w,o-w
+ fi
+ zsh -fc 'autoload -U compaudit && compaudit'
make -C os check
- name: Use the OS tmux release for native comparison
run: |
diff --git a/.github/workflows/os.yml b/.github/workflows/os.yml
index b82b73a5f..60e8572eb 100644
--- a/.github/workflows/os.yml
+++ b/.github/workflows/os.yml
@@ -159,6 +159,15 @@ jobs:
run: |
sudo apt-get update -qq
sudo apt-get install -y musl-tools tmux zsh cryptsetup-bin btrfs-progs
+ # Ubuntu's global zshrc runs compinit, which stops at "insecure directories ... continue [y]
+ # or abort compinit [n]?" for the runner image's group-writable completion folders; a zsh
+ # login shell under test then waits there (as cli-e2e.yml found). Fixed as zsh says.
+ insecure=$(zsh -fc 'autoload -U compaudit && compaudit' 2>/dev/null | grep '^/' | sort -u || true)
+ if [ -n "$insecure" ]; then
+ echo "$insecure" | xargs sudo chown root:root
+ echo "$insecure" | xargs sudo chmod g-w,o-w
+ fi
+ zsh -fc 'autoload -U compaudit && compaudit'
- name: Check encrypted cleanup with real device readers and stalled udev
run: |
# Fail early on real cleanup semantics, before compressing an ISO.