Github IP Whitelisting

You can restrict access to your organization's private assets by configuring a list of IP addresses that are allowed to connect.

You can create an IP allow list by adding entries that each contain an IP address or address range. After you finish adding entries, you can check whether a particular IP address would be allowed by any of the enabled entries in your list.

Before the list restricts access to private assets owned by organizations in your enterprise, you must also enable allowed IP addresses.

  1. In the top right corner of GitHub.com, click your profile photo, then click Your organizations.
Screenshot of the dropdown menu under @octocat's profile picture. "Your organizations" is outlined in dark orange.
  1. Next to the organization, click Settings.
  2. In the "Security" section of the sidebar, click Authentication security.
  3. At the bottom of the "IP allow list" section, in the "IP address or range in CIDR notation" field, type an IP address, or a range of addresses in CIDR notation.
Screenshot of the IP allow list settings. A text field, labeled "IP address or range in CIDR notation", is highlighted with an orange outline.
  1. Optionally, in the "Short description of IP address or range" field, enter a description of the allowed IP address or range.
  2. Click  Add.
  3. Optionally, check if a particular IP address would be allowed by any of the enabled entries in your list.