Skip to content

Guides

How to run CI economically on open source

Open-source CI is free on GitHub-hosted runners but slow, and self-hosting is unsafe.

5 min read

Open-source CI is free on GitHub-hosted runners but slow, and self-hosting is unsafe.

Why it happens

Fork pull requests can propose workflow changes, so any persistent runner is a security risk.

How to fix it

  1. Never use persistent self-hosted runners on a public repository
  2. Use ephemeral single-use VMs if you move off GitHub-hosted
  3. Require approval before running workflows from first-time contributors
  4. Apply for an open-source programme — most managed providers have one

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.