how to integrate with github actions

I'm trying to integrate my local web server with github. In order to do it, I need some secret info such as 'CLOUDFLARE_TUNNEL_ID', 'CLOUDFLARE_TUNNEL_SECRET', 'SSH_HOST', 'SSH_USER', 'SSH_PRIVATE_KEY'. What I am looking for is 'CLOUDFLARE_TUNNEL_SECRET', but I can not find it in cloudflare dashboard and I can't find ~/.cloudflared directory, either because I created a cloudflare tunnel through web browser. How can I download CLOUDFLARE_TUNNEL_SECRET?
4 Replies
fry69
fry692mo ago
How exactly do you want to contact your webserver from GitHub actions? Cloudflare Tunnels are part of Zero Trust and I think there are Service Tokens for such automation tasks (might require more setup on Zero Trust than just generating this token though)
yoshihiro
yoshihiroOP2mo ago
sorry for late to reply before associating cloudflare tunnel with Github, I had not been able to ssh to my sever through the tunnel. I'm trying WARP connection now
yoshihiro
yoshihiroOP2mo ago
I finally configured warp tunnel and I also found a way to associate it with github actions https://github.com/marketplace/actions/setup-cloudflare-warp
GitHub
Setup Cloudflare Warp - GitHub Marketplace
Sets up the Cloudflare Warp client in your GitHub Actions workflow
Andre
Andre4w ago
Hi, @yoshihiro , I searched in the general help thread looking if somebody was asking questions about tunnelling between GitHub and Localhost. I am on Cloudflares' free tier for now, routing my TL-domain through them and using their WAF services. What I want to figure out now is which of their tunnelling options will provide a reliable working option to test a local Jenkins CI/CD pipeline linked to a GitHub repo. I noticed Quick Tunnels, and Locally-managed tunnel (CLI). The confusion for me is which option to use I can't find clarity on this after searching through the CF docs to use CF as a "bridge" to link my GH repo via a GH-webhook to my localhost Jenkins server. Any pointers would be highly appreciated, thanks!
Want results from more Discord servers?
Add your server