GitHub Webhook not working

104 views
Skip to first unread message

Maik Brauer

unread,
Sep 17, 2022, 5:33:13 PM9/17/22
to ansible...@googlegroups.com
Apart from the standard configuration on a job template to connect everything with webhook service from github, it always turns into 403 Permission denied.
Anything else to configure?

Dick Visser

unread,
Sep 18, 2022, 12:26:39 AM9/18/22
to ansible...@googlegroups.com
I have no idea what this has to do with ansible...


On Sat, 17 Sep 2022 at 23:33, 'Maik Brauer' via Ansible Project <ansible...@googlegroups.com> wrote:
Apart from the standard configuration on a job template to connect everything with webhook service from github, it always turns into 403 Permission denied.
Anything else to configure?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/GVXP194MB1903C9965B556E8657A93CEDA44B9%40GVXP194MB1903.EURP194.PROD.OUTLOOK.COM.
--
Sent from Gmail Mobile

Maik Brauer

unread,
Sep 18, 2022, 4:01:05 AM9/18/22
to ansible...@googlegroups.com
Because Ansible throws the error, that this request is denied. GitHub sends a webhook to Ansible and ansible denied.
So I do also not get your statement. Whtnis wrong on my question in asking this as webhook integration is very well know with GitLab and GitHub.

Maik Brauer via Outlook für iOS

Von: ansible...@googlegroups.com <ansible...@googlegroups.com> im Auftrag von Dick Visser <dnmv...@gmail.com>
Gesendet: Sunday, September 18, 2022 6:26:11 AM
An: ansible...@googlegroups.com <ansible...@googlegroups.com>
Betreff: Re: [ansible-project] GitHub Webhook not working
 

m.ne...@cityscoot.eu

unread,
Sep 18, 2022, 8:25:35 AM9/18/22
to ansible...@googlegroups.com
This looks like a question for the AWX team, since you mentioned "job template".


On 18/09/2022 10:00, "'Maik Brauer' via Ansible Project" <ansible...@googlegroups.com> wrote:
> Because Ansible throws the error, that this request is denied. GitHub
> sends a webhook to Ansible and ansible denied.
> So I do also not get your statement. Whtnis wrong on my question in
> asking this as webhook integration is very well know with GitLab and GitHub.
>
> Maik Brauer via Outlook <https://aka.ms/qtex0l> für iOS
> ------------------------------------------------------------------------
> *Von:* ansible...@googlegroups.com
> <ansible...@googlegroups.com> im Auftrag von Dick Visser
> <dnmv...@gmail.com>
> *Gesendet:* Sunday, September 18, 2022 6:26:11 AM
> *An:* ansible...@googlegroups.com <ansible...@googlegroups.com>
> *Betreff:* Re: [ansible-project] GitHub Webhook not working
> I have no idea what this has to do with ansible...
>
>
> On Sat, 17 Sep 2022 at 23:33, 'Maik Brauer' via Ansible Project
> <ansible...@googlegroups.com
> <mailto:ansible...@googlegroups.com>> wrote:
>
> Apart from the standard configuration on a job template to connect
> everything with webhook service from github, it always turns into
> 403 Permission denied.
> Anything else to configure?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to ansible-proje...@googlegroups.com
> <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/GVXP194MB1903C9965B556E8657A93CEDA44B9%40GVXP194MB1903.EURP194.PROD.OUTLOOK.COM <https://groups.google.com/d/msgid/ansible-project/GVXP194MB1903C9965B556E8657A93CEDA44B9%40GVXP194MB1903.EURP194.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.
>
> --
> Sent from Gmail Mobile
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ansible-proje...@googlegroups.com
> <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAF8BbLa%3D-PH%2BOBbGRAuFVwcDo06dVp5opVQ3J6uKhm%3D-ibvT3Q%40mail.gmail.com <https://groups.google.com/d/msgid/ansible-project/CAF8BbLa%3D-PH%2BOBbGRAuFVwcDo06dVp5opVQ3J6uKhm%3D-ibvT3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ansible-proje...@googlegroups.com
> <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/AS8P194MB19209016A12C057F148E6B41A44A9%40AS8P194MB1920.EURP194.PROD.OUTLOOK.COM <https://groups.google.com/d/msgid/ansible-project/AS8P194MB19209016A12C057F148E6B41A44A9%40AS8P194MB1920.EURP194.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.
>

Wei-Yen Tan

unread,
Sep 18, 2022, 8:28:06 AM9/18/22
to ansible...@googlegroups.com
What's in your step that triggers the awx web hook? 

From: 'Maik Brauer' via Ansible Project <ansible...@googlegroups.com>
Sent: Sunday, September 18, 2022 4:00:42 PM
To: ansible...@googlegroups.com <ansible...@googlegroups.com>
Subject: Re: [ansible-project] GitHub Webhook not working
 

Maik Brauer

unread,
Sep 18, 2022, 12:23:47 PM9/18/22
to ansible...@googlegroups.com
I just  followed the following guide

Should be straight forward. But GitHub reports that with an 403 permission denied.

So my question is, do i need to configure something else?

Maik Brauer via Outlook für iOS

Von: ansible...@googlegroups.com <ansible...@googlegroups.com> im Auftrag von Wei-Yen Tan <weiye...@gmail.com>
Gesendet: Sunday, September 18, 2022 2:27:48 PM

Kevin Shumaker

unread,
Sep 18, 2022, 12:56:10 PM9/18/22
to Ansible Project
Out of curiosity, what command is being used to call the github when you get the error?
Can you give a sample / example?
Does the command work at a command line level?

Maik Brauer

unread,
Sep 18, 2022, 2:55:56 PM9/18/22
to Ansible Project
I tried to POST that via POSTMAN. Also there I got a HTTP403 Forbidden.

Due to sensitive data I can't really post my example here as it contains company data.
But according to the HowTo guide it should be straight forward.

Kevin Shumaker

unread,
Sep 18, 2022, 3:17:43 PM9/18/22
to Ansible Project
You can substitute w.x.y.z for the ip address or name of the web server, and change words or passwords and usernames to something else. It's hard to diagnose an issue if you don't know what the format of the command is you are using. I know, from personal experience, that just the number of spaces, quotes, etc are VERY sensitive as to placement.

Maik Brauer

unread,
Sep 18, 2022, 3:34:27 PM9/18/22
to Ansible Project

https://{{my_url}}/api/v2/job_templates/33/github/

For HTTP Header I choose:
Authorization: Bearer {Token from AWX job template }}
Content-Type: application/json
Reply all
Reply to author
Forward
0 new messages