question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

github webhook seems not work

See original GitHub issue

Bug Report

SUMMARY

I wanna to trigger role import when the github repo is updated. But github webhook seems not work. And there is no detail doc at https://docs.ansible.com/ansible/latest/reference_appendices/galaxy.html#travis-integrations

And there is no code to support ansible-galaxy setup github source.

Travis works. But travis only support notification when build start/cancel/error/success/failure. But this is meaningless, because the pull request is not merged.

STEPS TO REPRODUCE
  1. create webhook on github project. and use the token <github token>
  2. setup github webhook on galaxy side by following ansible-galaxy setup github jeffrey4l ansible-alertmanager-role <github token>
  3. trigger webhook on github side.
EXPECTED RESULTS

Response should be 200.

ACTUAL RESULTS

Get 500 error

Headers
Content-Length: 27
Content-Type: text/html
Date: Wed, 28 Nov 2018 01:26:01 GMT
Server: gunicorn/19.7.1
Set-Cookie: xxxx
Vary: Cookie
X-Frame-Options: SAMEORIGIN
X-REQUEST-ID: bbbb

Body
<h1>Server Error (500)</h1>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
geekbasscommented, Feb 20, 2019

The Galaxy web hook only supports Travis. We’re not going to extend it to work directly from GitHub at this point, which is what I think you’re asking for.

Is there any reason for not supporting Github webhooks now and in the future @chouseknecht ? Any background or context for this?

0reactions
stefanhorningcommented, Aug 2, 2020

Looks like the HTTP POST payload Travis sends it documented here: https://docs.travis-ci.com/user/notifications/#webhooks-delivery-format

So perhaps we can mimic this behavior in a Github action. However it would be nice to know which fields are actually used by Galaxy to trigger a re-import. So we don’t have to build the entire structure and maybe just send a subset of that Travis payload. At least until Galaxy supports GH actions natively…

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub: Webhook Troubleshooting - CloudBees Support
A.1 Webhook has not been generated or it is disabled (red cross) · Check that "GitHub-API-User" has Admin permissions for the repo. ·...
Read more >
Guide for Troubleshooting GitHub Webhooks - Hookdeck
Go to Settings → Webhooks. On the Webhooks page, click on the Add webhook button on the top right-hand corner.
Read more >
Jenkins: Github webhook does not trigger any job
Run the job manually in Jenkins, ensure that it works. ... (repeating a previous one won't trigger a new build even if webhooks...
Read more >
Github webhooks not working? - store - snapcraft.io
Disconnecting and reconnecting the repo led to a warning message “The GitHub Webhook could not be created. Please trigger a new build manually.”....
Read more >
webhook on Github always fails We couldn't deliver this ...
You need to specify an IP address GitHub can contact over the internet not the actual IP address . Steps: 1.Download the https://ngrok.com/ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found