Github Actions IP Ranges for Whitelist #26884
|
Hello, we are trying to see if it’s possible to whitelist github actions IP Ranges to ensure that only github actions runners can assume a particular role in AWS. Utilizing the following action: https://github.com/aws-actions/configure-aws-credentials I’m a little confused by the description for github actions IP Ranges. Described here: First question is that the docs says that the IP Ranges+ServiceTags JSON file is updated weekly. Does that mean the IP Ranges changes every week? Do we need to continuously update our whitelist in line with the values in the JSON? Or now that I’ve downloaded this file, the values in it should remain relatively static? Second, it says that the IP Address ranges are the same as Third, I happened to be scrolling through the list and saw the service |
Replies: 5 comments 3 replies
|
I found a partial answer to my first question in the fine print:
This leads to a follow-up, Is it possible for IP Addresses to drop out of the list every week or is it entirely for adding new ranges. Based on the wording, it seems like it could just be that they may add a new IP every once and a while. |
|
Hi @GoldFlsh, Glad to see you in Github Community Forum!
Thanks. |
|
The list is too large to use for my use case, since AWS trust policies have a size limit. But the answer addresses my main confusion around the language in the github docs, thank you :slight_smile: |
|
The whitelist is used to restrict access to protected resources, like private registry. Whitelisting IP ranges of Azure’s regions basically allows entire Azure region to access said resources. This is not a viable practice. I hope GitHub could limit runner IPs to a fixed range. |
|
Hello, |
Hi @GoldFlsh,
Glad to see you in Github Community Forum!
Thanks.