Skip to content

Instantly share code, notes, and snippets.

@robertbakker
Last active October 4, 2025 15:54
Show Gist options
  • Select an option

  • Save robertbakker/8db198e2f74b1a8f75648ef2b2b2b39b to your computer and use it in GitHub Desktop.

Select an option

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
#!/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