mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-11-25 09:52:26 +00:00
4a752502ed
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>