https://github.com/beardedfish/github-actions-ip-nginx-conf-builder
A PowerShell script which generates a list of NGINX allow rules of GitHub Actions runner IP addresses based on GitHub's public API.
https://github.com/beardedfish/github-actions-ip-nginx-conf-builder
Last synced: 8 days ago
JSON representation
A PowerShell script which generates a list of NGINX allow rules of GitHub Actions runner IP addresses based on GitHub's public API.
- Host: GitHub
- URL: https://github.com/beardedfish/github-actions-ip-nginx-conf-builder
- Owner: BeardedFish
- License: mit
- Created: 2024-01-28T08:17:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T08:19:47.000Z (over 2 years ago)
- Last Synced: 2025-10-20T07:36:53.646Z (10 months ago)
- Language: PowerShell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Actions IP NGINX Conf Builder
A PowerShell script which generates a list of [NGINX](https://www.nginx.com/) `allow` rules of GitHub Actions runner IP addresses based on [GitHub's public API](https://api.github.com/meta).
## Usage
```
./GenerateGitHubActionsNginxConf.ps1 > ./github-actions-ip-addresses.conf
```
Once your configuration file is generated, you can then include it in your NGINX server's configuration.
The below example assumes that the generated `github-actions-ip-addresses.conf` config file is located under the `/etc/nginx/conf` directory:
```nginx
server {
root /var/www/example-darianbenam-dot-com;
include conf/github-actions-ip-addresses.conf;
deny all;
# ...
}
```