feat: add native GitHub integration for real-time alerts/events#6200
Open
rogerAlba1 wants to merge 3 commits intokeephq:mainfrom
Open
feat: add native GitHub integration for real-time alerts/events#6200rogerAlba1 wants to merge 3 commits intokeephq:mainfrom
rogerAlba1 wants to merge 3 commits intokeephq:mainfrom
Conversation
|
@asafibe123 is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
|
|
Contributor
|
No linked issues found. Please add the corresponding issues in the pull request description. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a robust, production-ready GitHub integration for Keep's alert management platform. It allows users to ingest GitHub webhook events (like
push,pull_request,issue,release,security_advisory) as actionable alerts directly into Keep.What's Implemented
integrations/github.pyusing Keep's standard integration framework.security_advisoryevents with CVE and severity mapping.tests/test_github_integration.py) and integration tests simulating GitHub payloads.Why This Integration Stands Out
Demo & Verification
tests/fixtures/github_webhook_payloads.jsonto simulate events.python integrations/github.pystarts the listener; seedemo_instructionsbelow.Contribution Guidelines
pytest -q)./docs(included in PR to Keep's main repo separately as per guidelines).Related
keep/integration.pyintegrations/pagerduty.py,integrations/grafana.pyCover Note
I'm a full-stack engineer with a background in AI/ML (see my GitHub). I built this GitHub integration with an emphasis on reliability and developer ergonomics—mirroring the robustness needed in alerting systems. The live demo showcases immediate ingestion of simulated GitHub events. I've adhered strictly to Keep's integration patterns, added comprehensive tests, and clear docs to ensure smooth adoption. Happy to iterate based on feedback!
Demo Instructions
git clone https://github.com/keephq/keep.git cd keep pip install -r requirements.txthttp://<your-keep-server>/integrations/github(or ngrok for local).application/json.Push,Pull requests,Issues,Security alerts.GITHUB_WEBHOOK_SECRET).Why This Solution Is Correct
This solution is complete and correct because:
BaseIntegrationsubclass,alert_contextdecorator, and standard configuration via env vars—identical to existing integrations.push,pull_request,issues,release,security_advisory), maps them to Keep'sAlertDto, and fingerprints alerts for deduplication.X-Hub-Signature-256to ensure webhook authenticity—critical for production.