Audit n8n instance security with the n8n API, api.n8n.io and GitHub advisories
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs on a schedule (cron 0 7 * * *) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.n8n.io and api.github.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 7 * * *) (plus 1 other trigger).
- Set Sentinel Settings (Code): runs custom JavaScript code
- Run n8n Security Audit (HTTP Request): calls an HTTP API (POST)
- Fetch Stable n8n Versions (HTTP Request): calls api.n8n.io
- Fetch GitHub Security Advisories (HTTP Request): calls api.github.com
- Score Risk and Build Report (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Send Report Email (Send Email): sends an email over SMTP
HTTP calls to: api.n8n.io, 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 (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend
From the author
Quick overview This workflow runs every morning to audit your n8n instance, compare its version against n8n GitHub security advisories with branch-aware patch detection, and email a scored report and fix plan via SMTP when new risks are found or on a weekly…