Triage GitHub Dependabot and secret scanning alerts with email digests
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs on a schedule (every day at 07:00) (plus 2 other triggers). It uses only n8n's built-in nodes.
How it runs
Trigger: On a schedule (every day at 07:00) (plus 2 other triggers).
- Set repositories and rules (Edit Fields (Set)): sets 12 fields: repositories, organization, checkSecretScanning…
- Send the failure alert (Send Email): sends an email over SMTP
- Build one request per repository (Code): runs custom JavaScript code
- One request at a time (Loop Over Items (Split in Batches)): loops over the items in batches
- Triage alerts and decide what to send (Code): runs custom JavaScript code
- Get open alerts from GitHub (HTTP Request): calls an HTTP API
- Urgent, digest or nothing? (Switch): routes items into 3 branches
- Keep the repository with its alerts (Code): runs custom JavaScript code
- Send the urgent alert (Send Email): sends an email over SMTP
- Send the weekly digest (Send Email): sends an email over SMTP
…plus 1 more step. See the full node list below.
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Send Email
n8n-nodes-base.emailSend - No Operation, do nothing
n8n-nodes-base.noOp - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow runs daily to fetch open Dependabot and secret scanning alerts from GitHub repositories (or an organization), triages them into urgent notifications or a weekly digest, and sends the results by email while tracking state across…