Files
AutopilotMonitor/.github/scripts
Oliver Kieselbach 4a752502ed Bootstrap gates: the SYSTEM pass and the attacker test refuse to run outside CI
Both helpers said "CI only" in their help text, but nothing enforced it. Run
from an elevated shell, or on a self-hosted runner, one would execute the
checked-out code as SYSTEM and the other would create a real local account
on a machine that outlives the run. They now stop unless GITHUB_ACTIONS is
true and RUNNER_ENVIRONMENT is github-hosted. The check stops an accident,
not an attacker.

The SYSTEM pass also removes its work folder (the runner script SYSTEM
executed and its output) in a finally block, including when the run fails.
A failed cleanup does not replace the outcome.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:05:56 +01:00
..