Looking at this change, it's CI infrastructure — enabling Tuist's compilation cache. Let me trace the key security-relevant paths:
.github/workflows/ci.yml — the new "Set up Tuist cache" step:
Trigger is pull_request (not pull_request_target), so no secrets are exposed to fork PRs — safe
Explicit if: ${{ !github.event.pull_request.head.repo.fork }} gates cache setup on non-forks, preventing fork-PR-based cache poisoning of the tuist.dev remote cache
TUIST_CACHE_ENABLED=true written to $GITHUB_ENV correctly overrides the workflow-level "false" default for subsequent steps in the same job only — no leak across jobs
Socket wait loop with warn-only fallback: cache disabled if setup fails → fails safe (uncached build), doesn't fail open on security
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
for _ in $(seq 1 10); do [ -S "$SOCK" ] && break; sleep 1; done
code
if [ -S "$SOCK" ]; then
code
echo "TUIST_CACHE_ENABLED=true" >> "$GITHUB_ENV"
code
else
code
echo "::warning::Tuist cache service did not start — building uncached."
code
fi
code
# `build:app` generates the project first (depends = ["project"]).
- name: Build ReachyMini
run: mise run build:app
=== DIFF: Apps/Tuist.swift ===
@@ -6,6 +6,12 @@ let tuist = Tuist(
// A set fullHandle otherwise makes generation require a tuist.dev session, which
// CI and forks have none of. The project itself is connected; what is optional here
// is the session, not the connection.
=== DIFF: bootstrap.sh ===
@@ -30,6 +30,17 @@ echo "==> Enabling Git LFS for this clone"
Install only the local filters so git-lfs does not reject those existing hooks.
./bin/mise x -- git lfs install --local --skip-repo
+# Apps/Tuist.swift enables the Xcode compilation cache by default, and the cache
+# only answers through this per-user LaunchAgent — without it every compile task
+# waits out a CAS socket deadline. Needs a tuist.dev session, hence best-effort.
+echo "==> Setting up the Tuist Xcode cache service (LaunchAgent)"
+TUIST="(./bin/mise where tuist)/tuist"
+(cd Apps && env -u TOOLCHAINS "TUIST" setup cache) || {
echo "WARNING: tuist setup cache failed — no tuist.dev session?"
echo " Run './bin/mise x -- tuist auth login' and re-run bootstrap,"
echo " or generate with TUIST_CACHE_ENABLED=false to build uncached."
+}
echo "==> Done"
./bin/mise run setup
echo ""
=== DIFF: mise.toml ===
@@ -366,6 +366,23 @@ TUIST="(./bin/mise where tuist)/tuist"
cd Apps && exec "TUIST" inspect bundle "$BUNDLE"
'''
+[tasks.share]
+description = "Upload a built app to tuist.dev Previews and print the share link"
+# The Debug-iphoneos default is the mise run device product: signed with the personal
+# team, so the preview installs on registered devices — the unsigned CI build would not.
+run = '''
+#!/bin/bash
+set -euo pipefail
+BUNDLE="{{arg(name='bundle', default='Apps/DerivedData/Build/Products/Debug-iphoneos/ReachyMini.app')}}"
+if [ ! -e "$BUNDLE" ]; then
echo "No bundle at $BUNDLE — run 'mise run device -- --build-only' first." >&2
Default true locally is a UX/availability concern (compile hangs if socket missing), not security
No attacker-influenceable data flow — this is a build-time manifest read
bootstrap.sh — runs tuist setup cache:
Installs a per-user LaunchAgent as unprivileged user, standard developer tool install
No shell injection surface — no interpolated user input
mise.toml[tasks.share]:
Bundle path arg is developer-invoked, quoted, and passed to tuist share — no attacker path
tuist share uploads to tuist.dev Previews (public share link); worth noting if a maintainer were tricked into mise run share -- /path/to/secret, but this is a self-invoked command, not a sink for external input
Fork-gate, GITHUB_ENV scoping, and fail-closed behavior on socket-missing all check out. No source→sink path with attacker control that lacks mitigation.