WebHooks from someone else's repository? Is that possible? #22956
-
|
I need to receive ‘release’ events from third-party (that not belong to me) repository, so that I can rebuild my Docker images. After reading https://developer.github.com/webhooks/: >> Each event corresponds to a certain set of actions that can happen to your organization and/or repository. So, I can’t receive WebHooks from not mine repositories? |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 5 replies
-
|
No, it isn’t possible to receiive webhooks from an organization or repository that you do not own without an owner’s permission. If you can convince them to install the webhooks for you though, that might be an option. You can, however, periodically check the releases API for new updates and generate your own events. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! I think, pub/sub functionality on GitHub will be very cool thing. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, I have met the same question these days. Do you choose Polling now? |
Beta Was this translation helpful? Give feedback.
-
|
i agree. a subscription hook would be awesome to have. i currently have the same problem in front of me. i just want to set it as trigger for building docker images and auto deployment. |
Beta Was this translation helpful? Give feedback.
-
|
I use feed43 to build RSS for the repo, then use IFTTT to target simple webhook by RSS. To call some complicate API like quay.io’s build target, I write a Google Script and call it by IFTTT’s webhook. It works well for my personal project. Hope it can help you. |
Beta Was this translation helpful? Give feedback.
-
|
Has anyone tried using a WebSub? Not sure if it was supported when this post was originally made. |
Beta Was this translation helpful? Give feedback.
-
|
No, it isn’t possible to receiive webhooks from an organization or repository that you do not own without an owner’s permission. If you can convince them to install the webhooks for you though, that might be an option. You can, however, periodically check the releases API for new updates and generate your own events... |
Beta Was this translation helpful? Give feedback.
-
|
No, it isn’t possible to receiive webhooks from an organization or repository that you do not own without an owner’s permission. If you can convince them to install the webhooks for you though, that might be an option. You can, however, periodically check the releases API for new updates and generate your own events. |
Beta Was this translation helpful? Give feedback.
-
|
Correct — GitHub only lets repo owners or collaborators configure webhooks. If the repo isn’t yours, you can’t directly receive webhook events like releases. |
Beta Was this translation helpful? Give feedback.
-
|
Some unverified ideas. It seems that subscribing to custom events via the watch button can get email notifications when a repo release. Using services like Cloudflare's Email Workers can convert these emails into API calls. |
Beta Was this translation helpful? Give feedback.
-
|
Old topic, I know, but as a solution, I wrote a Komodo action that checks the 'latest' release version number from the Github releases API against a Komodo variable. If the release number is higher than the variable, a build is triggered and the variable is then updated to the new version number. I'm running this on a schedule to check once every couple of days. Still testing at the moment with the various configurations of build numbers but so far, so good. |
Beta Was this translation helpful? Give feedback.
No, it isn’t possible to receiive webhooks from an organization or repository that you do not own without an owner’s permission. If you can convince them to install the webhooks for you though, that might be an option.
You can, however, periodically check the releases API for new updates and generate your own events.