Issue
I want to set up GitHub webhook which will trigger Jenkins job. Jenkins is installed on AWS EC2. In this case I have to open Jenkins port so that Webhook will trigger Jenkins Job. I found this https://help.github.com/articles/about-github-s-ip-addresses/ link where they have mentioned GitHub IPs. Should I open all ports for this GitHub IPs? Is it secure and compliant with Best practices ? Is there any other solution which will do the same thing instead of opening ports.
Solution
I only opened the 8080 for TCP and also UDP and used the Public DNS (IPv4) as Payload url:
http://ec2-XX-XXX-XX-XXX.eu-west-1.compute.amazonaws.com:8080/github-webhook/
remember to end the url exactly with "github-webhook"
Answered By - Laura Liparulo