setup-digitalocean-firewall
![Node Version](https://camo.githubusercontent.com/2fa1353d1ca24e46ea53699d9b805e4974c31b5e55535df23ef4280a00915655/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6e6f64652d31362d626c7565)
GitHub Action to temporary add GitHub shared runner IP into DigitalOcean's firewall rule
- name: Setup DigitalOcean firewall
uses: earthpyy/setup-digitalocean-firewall@v1
with:
access-token: ${{ secrets.DO_ACCESS_TOKEN }}
firewall-id: eb64eefd-f935-4d75-b0a4-97e3d1dbec87
with:
...
ports: '8888/udp'
with:
...
ports: '22,8888/udp'
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) |
Key |
Description |
DO_ACCESS_TOKEN |
DigitalOcean's personal access token |
Key |
Example |
Description |
runner-ip |
1.2.3.4 |
IP of GitHub shared runner |