Security
Your CI needs to run code from contributors without handing them your secrets. Here is how FlareRunner keeps that work separate, and what you can do to keep your workflows safe.
Public source, private workspace
FlareRunner supports public and private repositories with a paid workspace and prepaid usage. You choose which repositories to connect and configure your workflows in GitHub. Their jobs run on our infrastructure, with status and logs available in your FlareRunner workspace. Making a repository public does not make its workspace or logs public.
Treat pull requests as untrusted code
A test, dependency, or action can run arbitrary code. We treat every pull request as untrusted, whether it comes from a fork or a branch in your repository. Approving a run lets it use compute; it does not give that code access to project secrets.
A fresh runner helps keep jobs apart, but it cannot protect a secret that a workflow hands to malicious code. We check the credentials in the job before any workflow code starts.
Check the job before running it
We check the actual job delivered by GitHub before downloading or starting actions, services, or workflow hooks. We verify its repository, event, run attempt, commit, and branch or pull request directly with GitHub. If that evidence is missing, disagrees, or cannot be verified, the job does not run. The credential summary sent for verification contains no secret names or values.
- Pull requests, other branches, and tags: no project secrets, extra credential endpoints, or OpenID Connect (OIDC) cloud access. The GitHub job token can read contents and metadata; other permissions must be absent or disabled.
- Default-branch workflows: verified pushes, scheduled runs, and manual runs on the default branch can use project credentials. Protect that branch and review what those workflows execute.
- Privileged triggers: we reject
pull_request_target,workflow_run, other unsupported events, and token permissions we cannot interpret safely.
Setting permissions: {} limits the GitHub token, but does not remove repository, organization, or environment secrets. We check those separately. Secret masking is useful for accidental log output; it is not a defense against code deliberately leaking a secret.
Give each job its own environment
Every job gets a fresh, single-job runner in a VM-backed Cloudflare container, destroyed after use. Jobs do not share writable disks or a Docker daemon. Job containers, services, and Docker actions stay inside that same job VM and share its network. Native steps start as the runner user with passwordless sudo; job containers use the user set by their image. Root can read and change everything inside that job, including credentials you give it.
FlareRunner's platform credentials stay outside the job VM in a Cloudflare Worker. The job can request only its own admission checks, log delivery, and cache access. It cannot choose another job or workspace or retrieve our platform credentials. These requests check that the job is still assigned and authorized; completion, expiry, installation suspension, or repository removal ends that access.
Each pull request has its own FlareRunner cache scope. It cannot read another pull request's cache, restore default-branch caches, or replace a trusted branch's archives. GitHub caches and artifacts are separate services. Keep secrets out of both. See the Caching guide for details.
Keep useful internet access, bound spending
Public and private jobs can connect to the internet to download dependencies and call APIs. Public repositories do not have a separate destination allowlist. Each job still has the credential and cache restrictions described above.
We recommend requiring GitHub workflow approval for all outside contributors. Review their changes, including workflow edits and new commits, before approving a run. FlareRunner does not approve GitHub workflow runs for you. See GitHub's fork approval guide.
Jobs reserve prepaid credit before they start. Spending controls, concurrency limits, maximum runtimes, bounded automatic top-ups, and log limits help control consumption. Contributions use your project's funded balance. These limits do not detect every kind of abusive traffic; our Terms of Service prohibit infrastructure misuse and unauthorized network access.
See the tests for yourself
Our public runner security acceptance tests exercise real GitHub workflows with disposable branches and dummy secrets. They cover pull request credentials, token permissions, cache separation, fresh job environments, log masking, and cancellation. The repository explains how results are checked and what each test can establish.
We also test the compiled GitHub runner in every image build, including that credential checks happen before action initialization. Our service tests cover job identity, request limits, and revoked access. These tests help catch regressions; they are not proof against every VM escape or a substitute for checking isolation and teardown after deployment.
GitHub warns against ordinary self-hosted runners for public repositories because contributor code can take over the runner. We combine single-job registration, fresh VM-backed environments, and credential checks to contain that risk. You can read GitHub's runner security guidance; GitHub has not certified FlareRunner's isolation.
A few habits that make a difference
- Keep pull request tests free of project secrets, write permissions, and OIDC. Put deployments in separate, reviewed default-branch workflows.
- Do not run unreviewed pull request code or downloaded artifacts in a privileged workflow. A trusted trigger does not make downloaded content trustworthy.
- Protect your default branch, review actions and dependencies, and give each job only the permissions it needs. Keep credentials out of source code, logs, caches, and artifacts.
- Use short-lived, narrowly scoped credentials. Restrict deployment environments and cloud identity to reviewed branches, with separate approval where available. Someone who can change trusted workflow code can misuse the credentials it receives, even in an isolated runner.