Guide
Static IP for GitHub Actions: every option compared
A partner whitelist, an IP allowlist, and a firewall rule ask the same question: which source addresses may connect? A GitHub-hosted ubuntu-latest job cannot answer it. The addresses change, they are shared with other customers, and the published ranges are too wide to hand a bank.
. If a provider has moved a setting, their documentation is the authority.
The short version
Six ways exist to put a stable source address in front of a workflow. They differ in who else can use that address, what you operate, and whether anyone can say which job opened the socket.
| Option | What the partner sees | Who else can use it | Names the job |
|---|---|---|---|
| Larger runners | A range, on Enterprise Cloud, Linux and Windows | Every job on that runner pool | No |
| Self-hosted runners | The machine's IP, or its NAT | Every job you schedule there | No |
| NAT gateway | The NAT's public IP | Everything in that subnet | No |
| Tailscale exit node | The exit node's public IP | Whatever the tailnet policy allows | A device tag |
| Static-IP proxy | The proxy's address, often a pair | Anyone holding the proxy URL | No |
| Proofbound | IPs dedicated to your organization | Named workloads, and only allowed destinations | Yes. In development |
If every caller behind the address is equally trusted, a NAT gateway or your platform's own static IP is the smaller system. Proofbound is for the case where the partner's trust in that address has to map to a specific workflow.
What GitHub-hosted runners actually emit
Standard GitHub-hosted runners draw from the ranges in the actions key of api.github.com/meta. GitHub publishes them so you can allow GitHub to reach your systems. They are a poor whitelist to give a partner:
- The ranges are large, shared across GitHub customers, and they change.
- A partner who accepts them has admitted every other GitHub Actions job on the internet, not yours.
- There is no static public IP on ubuntu-latest, windows-latest, or macos-latest.
Allowlisting those ranges on a partner API is how teams get through a demo and then fail a security review. The rest of this page is the set of replacements.
Larger runners with a static IP range
GitHub can assign a static public IP range to a larger runner. The range is unique to that runner pool, and every address in it is usable. All jobs in the pool share it, including concurrent jobs, because a larger runner is a pool that scales up to the concurrency you set.
- Static IP ranges require GitHub Enterprise Cloud. Larger runners themselves are also on the Team plan, but the static IP checkbox is Enterprise Cloud only.
- Linux and Windows only. macOS larger runners have no static IPs.
- The default quota is 10 larger-runner pools with static IP ranges. Enterprise documentation also describes separate enterprise and organization quotas. More than the default goes through GitHub Support.
- There is no extra fee for the static IP setting. You pay the larger-runner per-minute rate, and larger runners do not draw from included minutes.
- A range that goes unused for 90 days is removed and cannot be recovered.
- Point the job at the runner by name (
runs-on: your-runner), not atubuntu-latest.
Turn it on under the runner's Networking setting: “Assign unique & static public IP address ranges for this runner.” Then give the partner the whole range. A partner that will only whitelist a single host address may refuse a CIDR, which is the first reason teams outgrow this option.
The second reason is identity. Any workflow allowed to use that runner leaves from the same range, to any destination the job asks for. GitHub's own logs say which workflow ran. They are not a per-connection record of destination, decision, and bytes that you can hand a partner or a reviewer.
Full tradeoffs are on GitHub larger runners static IP vs alternatives.
Self-hosted runners
Install actions/runner on a machine whose egress address you control: a VM with a public IP, or a private VM behind a NAT gateway. The partner whitelists that address. Runner groups limit which repositories can schedule jobs there.
What you take on:
- Patching, disk, and the runner process. A stale runner is a build machine with your repo's permissions.
- Scaling. One machine is a queue. A fleet means images, autoscaling, and a way to keep the egress address stable while instances come and go, which is usually the NAT, not the instance IP.
- Secrets. A job on that runner can read the secrets the workflow is granted, and can open any outbound connection the network allows.
- A registration token and a long-lived machine credential. Those are the things a proxy password is, in another costume.
Self-hosted is the right answer when you already run the fleet for other reasons (hardware, a private network, a regulated image). It is an expensive answer when the only requirement was a stable source IP.
NAT gateway
Put the runners, or a small proxy VM, in a private subnet. Route their internet traffic through a cloud NAT with a reserved public address: an AWS NAT Gateway and Elastic IP, Cloud NAT and a reserved address, or an Azure NAT Gateway and a public IP. The partner allowlists that address.
The address belongs to the subnet. Every pod, job, and bastion in it looks the same from the outside. Flow logs tell you an IP talked to another IP. They do not tell you which workflow did, and they do not stop a job from dialing a host you never intended to whitelist.
You pay for the NAT for every hour it exists, plus data, including nights and weekends when no workflow runs. For a handful of CI jobs that is often the dominant cost. For a busy VPC you were going to run anyway, it is the ordinary choice, and the identity gap remains.
The same pattern is how Lambda, Cloud Run, and Azure App Service get a static outbound IP. Those pages are the platform-specific steps.
Tailscale exit node
Run an exit node on a VM that already has a stable public IP. In the workflow, tailscale/github-action joins the runner to your tailnet as an ephemeral node, then sends its traffic out through that exit node. The destination sees the exit node's address, which you put on the allowlist.
Tailscale can authenticate the action with the job's OIDC token, so you do not have to store a reusable auth key. Tag-based policy can limit what the GitHub tag is allowed to reach. That is a real control, and it is better than a NAT that accepts every process in the subnet.
- You operate the exit node: its uptime, its patches, and what happens when it is down. One node is one failure domain.
- An exit node captures the machine's traffic. A program that binds its own route, or a destination reached before the action runs, still leaves from GitHub's address.
- The audit trail is Tailscale's. It records the device. It is not a statement of which workflow was allowed to which host and port.
- This fits teams that already run a tailnet. It is a lot of product to adopt for a single partner IP.
Static-IP proxies
QuotaGuard Static and Fixie (and similar proxies) give you an HTTP or SOCKS endpoint with a stable address, usually a load-balanced pair. You set https_proxy or the equivalent to a URL that contains a username and password. The partner whitelists the proxy's addresses.
This is the fastest option that works this week, and the constraints are specific:
- The credential is long-lived. Anyone who can read the URL can leave from the IP. It lives in CI secrets, shell history, and crash dumps.
- An HTTP proxy is honored by clients that look at the environment. Many database drivers, SFTP, and custom binaries are not among them. SOCKS covers more TCP, with more setup. QuotaGuard speaks HTTP and SOCKS5. Fixie's main product is HTTP and HTTPS; TCP is a separate product, Fixie Socks.
- On shared plans the address is not yours alone. A partner whitelist then admits the proxy's other tenants. Dedicated addresses exist and cost more.
- There is still no per-workflow destination policy. The password unlocks the IP for whatever the job dials.
Heroku's Common Runtime has no static outbound IP of its own, which is why these add-ons exist. See Heroku static outbound IP.
Proofbound
Proofbound is an identity-aware outbound gateway, in development. A GitHub Actions job requests an OIDC token addressed to Proofbound. A small agent trades that token for an mTLS client certificate that expires in minutes. The private key stays on the runner. There is no proxy password.
The gateway dials the destination from egress IPs dedicated to your organization, the ones on the partner allowlist, and only when a policy lets that workload reach that host and port. Each connection is recorded: workload, run, destination, decision, timing, byte counts. Payloads are not decrypted.
Kubernetes is the same shape, with the pod's projected service-account token in place of the GitHub OIDC token. Early access starts with GitHub Actions. An Istio or Cilium egress-gateway comparison, for clusters that already terminate egress inside the mesh, is a later guide.
How to choose
- You are on GitHub Enterprise Cloud, the partner will accept a CIDR, and every job on that runner is equally trusted. Use larger runners.
- You already operate the machines. Use self-hosted runners, behind a NAT if the fleet changes.
- The whole subnet is one trust domain and the NAT is already in the budget. Use the NAT, and stop there.
- The company already runs Tailscale and someone will own the exit node. Use an exit node.
- You need a stable address this week for HTTP, or for TCP via SOCKS, and a shared or dedicated proxy IP is acceptable to the partner. Use QuotaGuard or Fixie.
- The partner's whitelist has to correspond to one workflow, other jobs must not be able to borrow the address, and you need a record of each connection. That is the gap Proofbound is being built for.
The pages linked below are the same decision for a specific platform or a specific partner. Platform pages are the honest native how-to, with a waitlist for the case the native how-to does not cover. Partner pages are how to get a CI job onto that provider's IP allowlist, and why the list still does not say which job connected.
Platform and partner pages
Platform static outbound IPs
Native how-tos for the deployment itself. CI on GitHub-hosted runners is a different source address.
Partner IP allowlists from CI
How a workflow gets onto the whitelist, and what that allowlist still leaves unnamed.
Comparisons
The products teams adopt first, set next to the other ways of getting a stable address.
Sources
Related
When the address has to name the workflow
Proofbound is in development. A job proves itself with its GitHub OIDC token, gets a certificate that lasts minutes, and leaves from egress IPs dedicated to your organization. The partner allowlists those IPs. You get a record of which workflow connected, and a policy for where it may go.
One email when early access opens.