A workflow that passed on Monday and fails on Tuesday, with no change to the YAML, is the kind of bug that eats an afternoon. GitHub has just handed some teams exactly that. On October 28 it said eligible jobs on GitHub-hosted Linux runners may now run on Amazon Web Services as well as Microsoft Azure, and the labels in your workflow stay the same.
For most repositories that's a quiet improvement. For any pipeline that talks to something locked to Azure's network, it's a ticking clock. This guide walks through what moved, how to find the things that depend on Azure, and what GitHub recommends instead.
Prerequisites: admin access to whatever guards your private systems (firewall, database allowlist, storage account network rules, Entra Conditional Access), plus curl and jq on a machine you trust.
What moved, and what didn't
GitHub's changelog says Actions now schedules eligible jobs across a broader multi-cloud compute pool to add capacity, cut capacity-related queue times and improve resilience at peak demand. The scope is narrow. It covers standard 2-core and 4-core Linux runners and compatible 2-core and 4-core larger runners without specialised configuration. It does not cover Windows runners, runners with private networking, or other specialised setups. GitHub's runner docs add that macOS runners live in GitHub's own macOS cloud.
On GitHub Free, Pro and Team, eligible runners join the pool automatically. On Enterprise Cloud you opt in. The changelog's path is Enterprise Settings, then Policies, then Actions, then General, then Hosted compute cloud providers, where you enable AWS compute. That path was wrong in the first version of the post. An editor's note dated November 2 says GitHub corrected it, so if you saved the original instructions, check them again.
It's a rolling change. You can't choose the cloud for a given job, and GitHub says it schedules jobs automatically across available providers, which is why a failure can appear only some of the time. GitHub hasn't published queue-time figures or a rollout timeline in the pages we read.
Expand
GitHub Actions quickstart log view showing a workflow run and its step output
Step 1: Find what trusts Azure
GitHub's warning is specific: policies that allow only Azure or Microsoft-owned IP ranges, including Microsoft Entra Conditional Access policies, can block connections or authentication from the new runners. So the hunt is for anything that decides whether to trust your CI by its source address. The usual places are:
- A database or Redis firewall that lists Azure datacenter ranges for CI access.
- Storage account network rules and key vault firewalls.
- Conditional Access policies that only trust Microsoft-owned networks.
- Third-party services where you gave your vendor a CIDR list years ago.
Search your infrastructure-as-code for those lists first. They're usually in Terraform or Bicep, which makes this a short job.
Step 2: Pull the real list from the meta API
GitHub publishes all runner ranges, including the new ones, in the actions array returned by the meta endpoint. It recommends keeping your allowlists in sync with that endpoint, not with a cloud provider's published ranges. Here's the whole job:
CodeCopy curl -s https://api.github.com/meta | jq -r '.actions[]' > actions-ranges.txt
wc -l actions-ranges.txt
Metarix, an independent write-up, counted 7,081 ranges in that array on October 29, 1,528 of them IPv6. Your own count will drift, because GitHub's docs say the list is updated once a week. That's the case for a scheduled sync rather than a one-off copy and paste.
There's a catch you should read before pasting seven thousand ranges into a firewall. GitHub's docs say that because there are so many IP ranges for hosted runners, it doesn't recommend using them as allowlists for your internal resources. For that, it suggests larger runners with a static IP address range, or self-hosted runners. If CI is the only reason a private database accepts connections, moving that job is the better answer. Our earlier piece on pinning your workflows with lockfiles covers another part of the same audit.
Step 3: Check Azure credential code
This one comes from Metarix's reading of GitHub's troubleshooting guidance, and I haven't confirmed it against GitHub's own page, so verify it before relying on it. Both AWS EC2 and Azure expose instance metadata at 169.254.169.254. Metarix says some Azure Identity SDKs treat an EC2 response from that address as a failed managed-identity sign-in, and stop trying other credentials before they reach the Azure CLI session that azure/login created. The job then fails even though login succeeded, with an error like this:
CodeCopy DefaultAzureCredential: failed to acquire a token. ManagedIdentityCredential authentication failed. GET http://169.254.169.254/metadata/identity/oauth2/token RESPONSE 401: 401 Unauthorized
The suggested fix is to pick AzureCLICredential explicitly when the app should use the azure/login session. For Go apps on azidentity 1.11.0 or later, GitHub says to set an environment variable on the step that runs the app:
CodeCopy - name: Run application env: AZURE_TOKEN_CREDENTIALS: AzureCLICredential run: ./application
Other languages and SDK versions vary in how they let you narrow DefaultAzureCredential, so check yours. The other options are constructing AzureCLICredential directly, or fully configuring workload identity or environment credentials.
Step 4: Get the Enterprise Cloud order right
If you administer an enterprise, don't flip the policy first. Do Steps 1 to 3 before enabling AWS compute under Hosted compute cloud providers, since the switch is what sends your jobs to the new ranges. Metarix says that's also the order GitHub's enterprise policy docs recommend. If you do nothing, your enterprise stays on the existing pool.
On Free, Pro and Team there's no switch to wait for. Those accounts are already in the rollout, so the work above is urgent for them in a way it isn't for Enterprise Cloud.
A plan that fits in a week
Start with an inventory, since you can't fix what you can't find. This search turns up hard-coded address ranges in an infrastructure repository, and it's crude but fast:
CodeCopy grep -rnE '([0-9]{1,3}.){3}[0-9]{1,3}/[0-9]{1,2}' infra/
Next, find out where a failing job is actually running. Add a throwaway step to a test workflow that prints the runner's public address, for example by calling an IP-echo service with curl, then check the address against your downloaded list:
CodeCopy python3 -c "import ipaddress,sys; ip=ipaddress.ip_address(sys.argv[1]); print(any(ip in ipaddress.ip_network(l.strip()) for l in open('actions-ranges.txt')))" 203.0.113.7
Swap the sample address for the one your job printed. A True means the address is inside GitHub's published runner ranges, and the firewall that rejected it simply doesn't list them. That's a faster diagnosis than reading firewall logs.
Then schedule the sync. A weekly job that downloads the array and updates the allowlist in code, with a pull request for a human to approve, matches the cadence GitHub says it publishes at. Run it against staging first, because a seven-thousand-line rule change is the sort of edit that deserves a second pair of eyes.
Finally, list the pipelines that really need a stable address. Those are the candidates for a larger runner with a static IP range or a self-hosted runner, and for the rest, short-lived credentials such as OIDC federation are a better trust signal than a network address.
Expand
GitHub Actions workflow visualization graph showing jobs and their dependencies
Troubleshooting
A job fails only some of the time. That fits a rolling rollout. A rerun landing on Azure again proves nothing about whether your allowlist is fixed, so don't close the ticket after one green run.
Sign-ins from CI are blocked in Entra. Check the sign-in logs for the source address of the failed attempt. If it's outside the ranges your Conditional Access policy trusts, the policy is the cause, and the fix is to sync it with the actions array, not to loosen it.
The Azure SDK returns a 401 from the metadata address. See Step 3. The job's own login step may have passed, which makes the failure confusing.
A job needs a fixed address. Use a larger runner with a static IP range, or a self-hosted runner. GitHub's own docs steer you there.
The part I'd push back on
I like the idea, and a CI service that can lean on two clouds is more likely to keep running when one has a bad day. What I don't like is that the safe path depends on every customer reading a changelog item and acting on it before the scheduler does. Network trust in CI was always fragile. This makes it fail intermittently instead of consistently, and intermittent is the worse kind.
Originally published on Mango Developer.


