Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github webhooks integration is broken #713

Closed
calvinli723 opened this issue Apr 2, 2023 · 4 comments · Fixed by #741
Closed

Github webhooks integration is broken #713

calvinli723 opened this issue Apr 2, 2023 · 4 comments · Fixed by #741

Comments

@calvinli723
Copy link

calvinli723 commented Apr 2, 2023

When I use the "registry package" payload on github, I get:

"registry package type was not docker"

as response.

Also, when I use the "package" payload on github, nothing seems to happen. The code in pkg/http/github_webhook_trigger.go has a line looking for "package_v2" as event type for the payload, which I believe is just "package" now.

@joebowbeer
Copy link
Collaborator

joebowbeer commented Aug 1, 2023

@bard
Copy link
Contributor

bard commented Sep 2, 2023

Took a stab at this in #741 — works for me but one test is failing.

Note you need to change webhook config in your repository so that "Packages" events are sent rather of "Registry Packages" (docs change at keel-hq/keel.sh#50)

@bard
Copy link
Contributor

bard commented Sep 2, 2023

Also, if anyone wants to test it, it's temporarily available at ghcr.io/bard/keel:master

@joebowbeer
Copy link
Collaborator

joebowbeer commented Sep 2, 2023

@bard I think the failing unit test is still sending the "package_v2" header

req.Header.Set("X-GitHub-Event", "package_v2")

Whereas you changed the expected header to "package"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants