All Projects → haythem → public-ip

haythem / public-ip

Licence: MIT license
Queries GitHub actions runner's public IP address

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to public-ip

actions-suggest-related-links
A GitHub Action to suggest related or similar issues, documents, and links. Based on the power of NLP and fastText.
Stars: ✭ 23 (-64.06%)
Mutual labels:  actions, github-actions
action.playbook
Github Action for running Ansible Playbooks.
Stars: ✭ 26 (-59.37%)
Mutual labels:  actions, github-actions
actions
Our Library of GitHub Actions
Stars: ✭ 49 (-23.44%)
Mutual labels:  actions, github-actions
Actions Gh Pages
GitHub Actions for GitHub Pages 🚀 Deploy static files and publish your site easily. Static-Site-Generators-friendly.
Stars: ✭ 2,576 (+3925%)
Mutual labels:  actions, github-actions
actions-deploy-gist
📌 Deploy file to Github Gist
Stars: ✭ 26 (-59.37%)
Mutual labels:  actions, github-actions
Awesome Actions
A curated list of awesome actions to use on GitHub
Stars: ✭ 16,943 (+26373.44%)
Mutual labels:  actions, github-actions
clang-format-action
GitHub Action for clang-format checking
Stars: ✭ 48 (-25%)
Mutual labels:  actions, github-actions
upx-action
Strips and runs upx on binaries
Stars: ✭ 17 (-73.44%)
Mutual labels:  actions, github-actions
netlify-build-github-actions
An example of triggering a Netlify build using Github Actions Scheduled Events
Stars: ✭ 31 (-51.56%)
Mutual labels:  actions, github-actions
ghaction-virustotal
GitHub Action to upload and scan files with VirusTotal
Stars: ✭ 105 (+64.06%)
Mutual labels:  actions, github-actions
actions
Set of actions for implementing CI/CD with werf and GitHub Actions
Stars: ✭ 67 (+4.69%)
Mutual labels:  actions, github-actions
actions
A set of GitHub actions for Infracost. See cloud cost estimates for Terraform in pull requests. 💰📉 Love your cloud bill!
Stars: ✭ 147 (+129.69%)
Mutual labels:  actions, github-actions
Actions Openwrt
A template for building OpenWrt with GitHub Actions | 使用 GitHub Actions 云编译 OpenWrt
Stars: ✭ 4,742 (+7309.38%)
Mutual labels:  actions, github-actions
juejin-actions
掘金每天自动签到 github actions 。组织了每周一起学习200行左右的【源码共读】活动,感兴趣可以加我微信 ruochuan12 参与。
Stars: ✭ 47 (-26.56%)
Mutual labels:  actions, github-actions
gh-pages-action
A GitHub Action to deploy a static site on GitHub Pages.
Stars: ✭ 26 (-59.37%)
Mutual labels:  actions, github-actions
action-homebrew-bump-formula
⚙️ A GitHub Action to easily bump Homebrew formula on new release
Stars: ✭ 68 (+6.25%)
Mutual labels:  actions, github-actions
action
📦📊 GitHub Action to reports on the size of your npm package
Stars: ✭ 36 (-43.75%)
Mutual labels:  actions, github-actions
github-run-tests-action
mabl Github Actions implementation
Stars: ✭ 39 (-39.06%)
Mutual labels:  actions, github-actions
recent-activity
Add your recent activity to your profile readme!
Stars: ✭ 87 (+35.94%)
Mutual labels:  actions, github-actions
python-actions-alpha-archived
Please note that this was for the *alpha* version of GitHub Actions for Python.
Stars: ✭ 15 (-76.56%)
Mutual labels:  actions, github-actions

Public IP

Queries the GitHub actions runner's public IP address using ipify

Motivation

GitHub actions shared runners are hosted in Azure (Windows & Linux) and Mac Stadium for macOS, so whitelisting all these infrastructures can be difficult and needs to be updated every once in a while.

GitHub Help

This action allows you to whitelist the runner's address and remove it once the pipeline finishes.

Usage

Inputs

  • maxRetries - How many retries on the ipify API before failing. Default: 5

Outputs

  • ipv4 - Public IPv4 of the runner
  • ipv6 - Public IPv6 of the runner. If not available the ipv4 will be returned

Example workflow

name: Public IP

on: push

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - name: Public IP
      id: ip
      uses: haythem/[email protected]

    - name: Print Public IP
      run: |
        echo ${{ steps.ip.outputs.ipv4 }}
        echo ${{ steps.ip.outputs.ipv6 }}

Contributing

We would love for you to contribute to haythem/public-ip, pull requests are welcome !

License

The scripts and documentation in this project are released under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].