Simple python script, runnable from GHA, that allows importing PiHole domain blocking lists into Cloudflare Zero-Trust Gateway configuration.
(based on https://github.com/IanDesuyo/CloudflareGatewayAdBlock)
- Create Cloudflare API token, from https://dash.cloudflare.com/profile/api-tokens, with 3 permissions
Account.Zero Trust : Edit
Account.Account Firewall Access Rules : Edit
Account.Access: Apps and Policies : Edit
- Get your Account ID from : https://dash.cloudflare.com/?to=/:account/workers
- Clone this repository.
- Configure action secrets:
CF_IDENTIFIER
with Account IDCF_API_TOKEN
with API Token
- Modify
config.ini
with your preferred blocking lists - Enable action