Projects

Allow IP PoC

GitHub
CICD
JavaScript

A PoC script to automatically manage the GitHub IP Allow List.

Repo

The GitHub logo.

While I was working at Liatrio one of our clients requested a solution to automatically add the IP addresses used by GitHub to their GitHub Organizations IP Allow List. This was because the organization required an IP allow list to prevent unauthorized access to their repositories and services but still required GitHub Actions to be able to run without any issues.

The solution I came up with was a simple Node.js script that would get the latest batch of IP addresses used by GitHub via their API and then use the API again to add those IPs to the organizations allow list. The script would then be run as a scheduled GitHub Action Workflow to ensure that the allow list was always up to date.

The script was a success and the client was happy with the solution. The script was then added to the client’s GitHub repository and has been running without any issues since then. The script is now open-source and available for anyone to use and modify as they see fit.