Skip to content

Commit b22687a

Browse files
lucascostiMartin Lopes
andauthored
Update Actions runner IP address section (#17197)
Co-authored-by: Martin Lopes <martin389@github.com>
1 parent b1364b0 commit b22687a

1 file changed

Lines changed: 5 additions & 38 deletions

File tree

content/actions/reference/specifications-for-github-hosted-runners.md

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -83,44 +83,11 @@ If there is a tool that you'd like to request, please open an issue at [actions/
8383

8484
{% endnote %}
8585

86-
Windows and Ubuntu runners are hosted in Azure and have the same IP address ranges as Azure Data centers. Currently, all Windows and Ubuntu {% data variables.product.prodname_dotcom %}-hosted runners are in the following Azure regions:
87-
88-
- East US (`eastus`)
89-
- East US 2 (`eastus2`)
90-
- West US 2 (`westus2`)
91-
- Central US (`centralus`)
92-
- South Central US (`southcentralus`)
93-
94-
Microsoft updates the Azure IP address ranges weekly in a JSON file that you can download from the [Azure IP Ranges and Service Tags - Public Cloud](https://www.microsoft.com/en-us/download/details.aspx?id=56519) website. You can use this range of IP addresses if you require an allow-list to prevent unauthorized access to your internal resources.
95-
96-
The JSON file contains an array called `values`. Inside that array, you can find the supported IP addresses in an object with a `name` and `id` of the Azure region, for example `"AzureCloud.eastus2"`.
97-
98-
You can find the supported IP address ranges in the `"addressPrefixes"` object. This is a condensed example of the JSON file.
99-
100-
```json
101-
{
102-
"changeNumber": 84,
103-
"cloud": "Public",
104-
"values": [
105-
{
106-
"name": "AzureCloud.eastus2",
107-
"id": "AzureCloud.eastus2",
108-
"properties": {
109-
"changeNumber": 33,
110-
"region": "eastus2",
111-
"platform": "Azure",
112-
"systemService": "",
113-
"addressPrefixes": [
114-
"13.68.0.0/17",
115-
"13.77.64.0/18",
116-
"13.104.147.0/25",
117-
...
118-
]
119-
}
120-
}
121-
]
122-
}
123-
```
86+
Windows and Ubuntu runners are hosted in Azure and subsequently have the same IP address ranges as the Azure datacenters. macOS runners are hosted in {% data variables.product.prodname_dotcom %}'s own macOS cloud.
87+
88+
To get a list of IP address ranges that {% data variables.product.prodname_actions %} uses for {% data variables.product.prodname_dotcom %}-hosted runners, you can use the {% data variables.product.prodname_dotcom %} REST API . For more information, see the `actions` key in the response of the "[Get GitHub meta information](/rest/reference/meta#get-github-meta-information)" endpoint. You can use this list of IP addresses if you require an allow-list to prevent unauthorized access to your internal resources.
89+
90+
The list of {% data variables.product.prodname_actions %} IP addresses returned by the API is updated once a week.
12491

12592
### File systems
12693

0 commit comments

Comments
 (0)