What is an ephemeral runner, and why is it the production default?
IntermediateConceptCaching, Artifacts, Runners & ARC
Answer
--ephemeral means the runner takes exactly one job and then unregisters. Combined with a fresh VM or pod per job, there is no leftover state: no cached credentials, no poisoned tool cache, no files from another repo's job. Persistent runners leak secrets and artifacts between jobs and let one malicious job backdoor the machine for the next. Use JIT runners (POST /orgs/{org}/actions/runners/generate-jitconfig) to create single-use runners without a registration token on disk; ARC uses this internally.
More on Caching, Artifacts, Runners & ARC
How does `actions/cache` match keys and restore keys?IntermediateWhich caches can a branch restore from?AdvancedWhat are the cache size limits and eviction rules?BeginnerWhen should you use setup-* built-in caching instead of `actions/cache`?BeginnerWhy cache the package manager's download cache rather than `node_modules`?AdvancedHow do `actions/cache/restore` and `actions/cache/save` help?Advanced