Monitor GitHub repo access and push events with GitHub and Slack alerts
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every hour). Along the way it connects Slack. It also calls api.github.com over HTTP.
How it runs
Trigger: On a schedule (every hour).
- Github Events (HTTP) (HTTP Request): calls api.github.com
- Filter Member Events (Code): runs custom JavaScript code
- Check Whitelist (Data table): get
- Switch: routes items into 3 branches
- MemberEvent (If): checks a condition and branches into true / false
- PublicEvent (If): checks a condition and branches into true / false
- PushEvent (If): checks a condition and branches into true / false
- Member Event Alert (Slack): uses Slack
- Public Event Alert (Slack): uses Slack
- Push Event Alert (Slack): uses Slack
Services it uses
HTTP calls to: api.github.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Monitor GitHub Repositories for Unauthorized Actions How it works: This workflow monitors GitHub for high-risk activities to ensure that only authorized users can modify the repository. It periodically polls GitHub for events such as PushEvent, MemberEvent,…