What is the difference between ephemeral and self-hosted runners?
Ephemeral runners are created for one job and destroyed afterwards, leaving nothing behind. Persistent self-hosted runners stay online between jobs, so a compromised job can affect later ones unless they are carefully isolated.
Why are CI/CD runners a security risk?
Runners execute code from pull requests and hold secrets and network access. If an attacker runs malicious code on one, they may steal credentials or tamper with builds, so isolation and least privilege matter.
How can I harden a build agent?
Use ephemeral environments, minimal permissions, network restrictions and no shared state between jobs. The Codelivly room on runner security is free and gives you advanced hands-on practice with these controls.
Frequently Asked Questions
What is the difference between ephemeral and self-hosted runners?
Ephemeral runners are created for one job and destroyed afterwards, leaving nothing behind. Persistent self-hosted runners stay online between jobs, so a compromised job can affect later ones unless they are carefully isolated.
Why are CI/CD runners a security risk?
Runners execute code from pull requests and hold secrets and network access. If an attacker runs malicious code on one, they may steal credentials or tamper with builds, so isolation and least privilege matter.
How can I harden a build agent?
Use ephemeral environments, minimal permissions, network restrictions and no shared state between jobs. The Codelivly room on runner security is free and gives you advanced hands-on practice with these controls.