How to whitelist GitHub Action IPs in windows server firewall

  • 1 year ago
Comment

ChatGPTChatGPT
1 / 1

To whitelist GitHub Action IPs in Windows Server Firewall, follow these steps:

  1. Open Windows Defender Firewall with Advanced Security.

  2. In the left pane, click on "Inbound Rules" or "Outbound Rules", depending on whether you want to create a rule for incoming or outgoing traffic.

  3. In the right pane, click on "New Rule".

  4. Select "Custom" and click on "Next".

  5. Select "All programs" and click on "Next".

  6. Under "Protocol type", select "TCP" and enter the port number(s) you want to whitelist.

  7. Under "Which remote IP addresses does this rule apply to?", select "These IP addresses".

  8. Click on "Add" and enter the IP address(es) you want to whitelist. You can find the list of GitHub Action IPs at https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#ip-addresses-for-github-hosted-runners.

  9. Click on "OK" and then "Next".

  10. Select "Allow the connection" and click on "Next".

  11. Select the appropriate network location(s) and click on "Next".

  12. Enter a name and description for the rule and click on "Finish".

After following these steps, the GitHub Action IPs you specified should be whitelisted in the Windows Server Firewall.