A GitHub Action that retrieves the public IP address of GitHub Actions runners for firewall whitelisting.
Public IP is a GitHub Action that queries and returns the public IP address of GitHub Actions runners. It solves the problem of dynamically whitelisting runner IP addresses in firewalls and security groups, as GitHub's shared runner infrastructure uses constantly changing IP ranges across Azure and Mac Stadium.
DevOps engineers and developers using GitHub Actions who need to securely connect runners to external services, databases, or APIs that require IP-based firewall rules.
Developers choose Public IP because it provides a simple, automated solution to a common CI/CD security challenge, eliminating manual IP tracking and reducing security risks from overly permissive firewall rules.
Queries GitHub actions runner's public IP address
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically fetches the runner's current public IPv4 and IPv6 addresses during workflow execution, as shown in the example that prints both IPs, eliminating manual tracking.
Returns both IPv4 and IPv6 addresses with a fallback to IPv4 when IPv6 is unavailable, as specified in the outputs section, ensuring compatibility across networks.
Easy to use with minimal YAML configuration, requiring only the action reference and output handling, demonstrated in the straightforward workflow example.
Includes configurable retry logic with up to 5 attempts via the maxRetries input, helping gracefully handle temporary API failures from ipify.
Relies entirely on the ipify service, which if down or rate-limited can cause workflow failures without built-in fallback options, adding a single point of failure.
Only provides basic retries; lacks advanced recovery like alternative IP sources or validation, which could be risky for production-critical deployments.
Does not validate or sanitize IP addresses, and the README omits security guidance for logging sensitive IP data, potentially exposing information in outputs.