Docker and CI/CD · Senior · Question 58 of 75
Why prefer ephemeral self-hosted runners that take a single job?
- 1They can run jobs without checking out the code first
- ✓Correct answer: No state or malware can carry over from one job to the next
- 3They make each job cost less than GitHub-hosted runners do
Explanation
Persistent runners accumulate caches, credentials and possibly compromise. Autoscaling ephemeral runners give a clean machine per job.