Automated weekly security audit reports with Gmail delivery
Needs changesWhat this workflow does
This workflow has 9 nodes and runs on a schedule (legacy Cron node). Along the way it connects Gmail.
How it runs
Trigger: On a schedule (legacy Cron node).
- Set Config Variables (Edit Fields (Set)): sets 4 fields: email_to, project_name, server_url…
- Generate a security audit (n8n): generate (audit)
- Filter duplicate WorkflowID (Code): runs custom JavaScript code
- Get last executions (n8n): work with execution
- If: checks a condition and branches into true / false
- Format Audit Report - FR (Code): runs custom JavaScript code
- Format Audit Report - EN (Code): runs custom JavaScript code
- Send Gmail (HTML) (Gmail): work with message
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Cron in Schedule Trigger (Weekly): replace with Schedule Trigger.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| Cron Schedule Trigger (Weekly) | Schedule Trigger |
Nodes used (6)
- Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Cron
n8n-nodes-base.cron - n8n
n8n-nodes-base.n8n - Code
n8n-nodes-base.code - If
n8n-nodes-base.if
From the author
🔒 N8N Security Audit Report - Automated Weekly Email 🎯 What does this workflow do? This workflow automatically generates and emails a comprehensive security audit report for your N8N instance every week. It identifies potential security risks related to: -…