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 : EditAccount.Account Firewall Access Rules : EditAccount.Access: Apps and Policies : Edit - Get your Account ID from : https://dash.cloudflare.com/?to=/:account/workers
- Clone this repository.
- Configure action secrets:
CF_IDENTIFIERwith Account IDCF_API_TOKENwith API Token
- Modify
config.iniwith your preferred blocking lists - Enable action