Last active
October 4, 2025 15:54
-
-
Save robertbakker/8db198e2f74b1a8f75648ef2b2b2b39b to your computer and use it in GitHub Desktop.
Add UFW firewall rules to allow Github Actions access through SSH, using cURL and JQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| for cidr in $(curl https://api.github.com/meta | jq -r '.actions[]'); do | |
| ufw allow from $cidr to any port 22 | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment