Skip to content

GitHub Action to temporary add GitHub shared runner IP into DigitalOcean's firewall rule

License

Notifications You must be signed in to change notification settings

earthpyy/setup-digitalocean-firewall

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-digitalocean-firewall

GitHub GitHub CI Status Node Version

GitHub Action to temporary add GitHub shared runner IP into DigitalOcean's firewall rule

Examples

Basic Usage

- name: Setup DigitalOcean firewall
  uses: earthpyy/setup-digitalocean-firewall@v1
  with:
    access-token: ${{ secrets.DO_ACCESS_TOKEN }}
    firewall-id: eb64eefd-f935-4d75-b0a4-97e3d1dbec87

Custom Protocol/Port

  with:
    ...
    ports: '8888/udp'

Multiple Ports

  with:
    ...
    ports: '22,8888/udp'

Inputs

Key Required Default Description
access-token Yes DigitalOcean's personal access token
firewall-id Yes Firewall ID
ports No 22 Ports to allow (if no protocol specified, tcp is applied)
dry-run No false Dry run (no firewall change)

Secrets

Key Description
DO_ACCESS_TOKEN DigitalOcean's personal access token

Outputs

Key Example Description
runner-ip 1.2.3.4 IP of GitHub shared runner

About

GitHub Action to temporary add GitHub shared runner IP into DigitalOcean's firewall rule

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project