Comments (2)
Not ideal, but you could send a HEAD /
request to the enterprise URL and read out the X-GitHub-Enterprise-Version
header. This might be another use case to be implemented with hooks, currently discussed at #44
from webhooks.js.
GitHub sends additional headers when receiving webhooks from a GHES instance, see https://docs.github.com/en/enterprise/2.21/user/developers/webhooks-and-events/webhook-events-and-payloads#delivery-headers
Example
> POST /payload HTTP/1.1
> X-GitHub-Delivery: 72d3162e-cc78-11e3-81ab-4c9367dc0958
> X-GitHub-Enterprise-Version: 2.15.0
> X-GitHub-Enterprise-Host: example.com
> X-Hub-Signature: sha1=7d38cdd689735b008b3c702edd92eea23791c5f6
> X-GitHub-Event: issues
from webhooks.js.
Related Issues (20)
- How to disable secret verification? HOT 3
- [FEAT]: Add support for deployment_protection_rule event HOT 2
- [FEAT]: Export type MiddlewareOptions
- [FEAT]: request to export event handler parameter type HOT 7
- [BUG]: signature does not match event payload and secret HOT 4
- [DOCS]: Smee setup documentation has an error HOT 3
- The automated release is failing 🚨 HOT 1
- Avoid parsing JSON payload twice. HOT 4
- Memory leak/recursive loop in 12.0.7 in the types HOT 6
- [FEAT]: Export createNodeHandler HOT 11
- [BUG]: google-cloud-function, can not verify payload HOT 4
- [BUG]: bodyparser in get-payload potentially buggy HOT 2
- [MAINT]: Investigate performance loss due to data conversions HOT 8
- [BUG]: Current documentation still refers to outdated 'path' in Middleware options instead of the new `pathPrefix` HOT 5
- [BUG]: Preparsed payloads are not handled correctly, here Vercel HOT 4
- [BUG]: Type discrepencies vs actual code HOT 3
- [BUG]: webhooks.js v12.0.10 onward breaks compatibility with @fastify/middie middleware library HOT 4
- [MAINT]: drop aggregate-error dependency HOT 6
- [BUG]: Public interface types should expect strings HOT 1
- [SUPPORT]: How to provide typing foe webhook handlers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webhooks.js.