Interview Prep/Git & GitHub/Security: secrets, signing, access and supply chain

What are the risks of using a self-hosted runner for a public repo?

IntermediateProductionSecurity: secrets, signing, access and supply chain
Answer

Untrusted PR code runs on your infrastructure, can persist malware between jobs, pivot into your network and read other jobs' leftovers. Use self-hosted runners only for private repos, make them ephemeral (one job per VM or pod via Actions Runner Controller), isolate their network, and keep them off production credentials.

All Git & GitHub questions Roadmap: Git & GitHub

More on Security: secrets, signing, access and supply chain