Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GitHub Actions
  3. Public IP

Public IP

MITTypeScriptv1.3

A GitHub Action that retrieves the public IP address of GitHub Actions runners for firewall whitelisting.

GitHubGitHub
126 stars33 forks0 contributors

What is Public IP?

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.

Target Audience

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.

Value Proposition

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.

Overview

Queries GitHub actions runner's public IP address

Use Cases

Best For

  • Whitelisting GitHub Actions runners in cloud firewall rules
  • Securely connecting CI/CD pipelines to databases with IP restrictions
  • Dynamically configuring security groups for deployment environments
  • Troubleshooting network connectivity issues in CI/CD workflows
  • Auditing which IP addresses GitHub Actions are using
  • Implementing temporary IP-based access for automated deployments

Not Ideal For

  • Projects using CI/CD platforms other than GitHub Actions (e.g., GitLab CI, Jenkins)
  • Environments with strict security policies that prohibit external API calls to services like ipify
  • Use cases requiring permanent IP whitelisting or historical IP address logging beyond individual runs

Pros & Cons

Pros

Dynamic IP Retrieval

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.

Dual Stack Support

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.

Simple Integration

Easy to use with minimal YAML configuration, requiring only the action reference and output handling, demonstrated in the straightforward workflow example.

Retry Mechanism

Includes configurable retry logic with up to 5 attempts via the maxRetries input, helping gracefully handle temporary API failures from ipify.

Cons

External API Dependency

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.

Limited Error Handling

Only provides basic retries; lacks advanced recovery like alternative IP sources or validation, which could be risky for production-critical deployments.

No Security Features

Does not validate or sanitize IP addresses, and the README omits security guidance for logging sensitive IP data, potentially exposing information in outputs.

Frequently Asked Questions

Quick Stats

Stars126
Forks33
Contributors0
Open Issues5
Last commit2 years ago
CreatedSince 2020

Tags

#actions#devops#azure#ci-cd#firewall#ipv4#ip-address#automation#ipv6#github-actions

Included in

GitHub Actions27.6k
Auto-fetched 15 hours ago

Related Projects

action-tmateaction-tmate

Debug your GitHub Actions via SSH by using tmate to get access to the runner system itself.

Stars3,566
Forks330
Last commit2 days ago
Paths FilterPaths Filter

Conditionally run actions based on files modified by PR, feature branch or pushed commits

Stars3,263
Forks380
Last commit14 days ago
Setup ssh-agentSetup ssh-agent

GitHub Action to setup `ssh-agent` with a private key

Stars1,477
Forks300
Last commit1 month ago
GitHub Actions to compile LaTeX documentsGitHub Actions to compile LaTeX documents

:octocat: GitHub Action to compile LaTeX documents

Stars1,401
Forks149
Last commit29 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub