{"repo":"patoroco/doorkeeper","free":true,"listed":false,"github":"https://github.com/patoroco/doorkeeper","clone":"git clone https://github.com/patoroco/doorkeeper.git","description":"Github action that allows you to open or close a specific port in your DigitalOcean firewall.","language":"TypeScript","stars":26,"topics":["digitalocean","github-actions","deploy","firewall-rules"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Doorkeeper DigitalOcean Action ============================== This Github action allows you to open or close a specific port in your DigitalOcean firewall. It's really useful for deploying to your instances from Github Actions, as they don't provide a list of IPs to add to your security groups. Usage ----- You need to generate a personal access token from your DigitalOcean Applications & API page. Copy that token, and paste in the secrets of your repo: Create or update a workflow, adding the file .github/workflows/doorkeeper.yml (more info about how to use Github Actions). To check that everything is working as expected, you have to push these changes to your repo, and a new build in the Actions tab should be starting. Inputs ------ Input Required Default Description ------- ---------- --------- ------------- digitaloceanToken Yes - Your DigitalOcean API token firewallName Yes - Name of the firewall attached to your droplet actionToDo Yes - add or remove the IP from the firewall protocol No tcp Protocol used by the service ( tcp or udp ) port No 22 Port used by the service IP No Auto-detected IP address to add/remove. If not set, uses the runner's public IP dryRun No false Set to true to test without applying changes Outputs ------- Output Description -------- ------------- ip The IP address that was added/removed from the firewall This is useful when you want to ensure the same IP is removed in a cleanup step, even if the job runs on a different runner: Development ---------","default_branch":null,"files":null,"tree":[],"storefront":"/r/patoroco","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/patoroco/doorkeeper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}