https://github.com/earthpyy/setup-digitalocean-firewall
GitHub Action to temporary add GitHub shared runner IP into DigitalOcean's firewall rule
https://github.com/earthpyy/setup-digitalocean-firewall
digitalocean firewall firewall-rules
Last synced: 11 months ago
JSON representation
GitHub Action to temporary add GitHub shared runner IP into DigitalOcean's firewall rule
- Host: GitHub
- URL: https://github.com/earthpyy/setup-digitalocean-firewall
- Owner: earthpyy
- License: gpl-3.0
- Created: 2022-01-07T11:46:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T04:02:22.000Z (over 2 years ago)
- Last Synced: 2025-07-01T16:20:50.932Z (about 1 year ago)
- Topics: digitalocean, firewall, firewall-rules
- Language: JavaScript
- Homepage:
- Size: 497 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# setup-digitalocean-firewall



GitHub Action to temporary add GitHub shared runner IP into DigitalOcean's firewall rule
## Examples
### Basic Usage
```yml
- 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
```yml
with:
...
ports: '8888/udp'
```
### Multiple Ports
```yml
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 |