Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

andymckay/actions-ips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update: for a while these IPs have been available from the GitHub Meta API as well at https://docs.github.com/en/rest/reference/meta#get-github-meta-information. This library doesn't get much usage and given it's in the API, you can just go get it from there.

Here's how to get it in Python:

>>> import requests
>>> requests.get("https://api.github.com/meta").json()["actions"]
['13.64.0.0/16', '13.65.0.0/16'...

This is a Python module to tell you the IP Addresses that GitHub Actions runs on. It does this by grabbing a file from Microsoft's site, parsing it and outputting the IP ranges in CIDR format for you to consume.

IP ranges are in both IPv4 and IPv6 formats.

The IP ranges are sorted for easier diffing.

The IP ranges for macOS runners are also included.

Installing:

pip install actions-ips

Example usage:

>>> from actions_ips import ips
>>> ips.cidrs()
['13.64.0.0/16', '13.65.0.0/16'...

Useful links:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages