Skip to main content

Run a weekly n8n security audit and email changes with Supabase and Gmail

Workflow preview

Workflow preview
100%
Run a weekly n8n security audit and email changes with Supabase and Gmail preview
Open on n8n.io

1. Workflow Overview

How it works If your main Error Diagnosis workflow fails for any reason, this backup workflow sends an alert email to the workflow owner. For a (main) advanced and automated error diagnosis workflo...

Best for

  • SecOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.supabase, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.gmail, n8n-nodes-base.n8n

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Flowcheckers.

Original n8n.io source

1.1 Workflow description

Title
Run a weekly n8n security audit and email changes with Supabase and Gmail
Workflow name
Run a weekly n8n security audit and email changes with Supabase and Gmail

How it works

If your main Error Diagnosis workflow fails for any reason, this backup workflow sends an alert email to the workflow owner.

For a (main) advanced and automated error diagnosis workflow check: ++flowcheckers.com++

Node 1 - Backup Error Trigger No configuration needed. Fires automatically when the main workflow encounters an unhandled error.

Node 2 - Internal alert notification Sends an alert email to the workflow owner when the main diagnosis workflow fails. The email contains the error details, the workflow name, and a link to the failed execution in n8n so the owner can investigate immediately.

Setup

  • Import backup-error-workflow.json into your n8n instance
  • Connect the Resend credential inside the Resend node (Important: the From address must be a domain verified in Resend, otherwise the send will be rejected)
  • Link this workflow as the Error Workflow of the main diagnosis workflow
  • Confirm the workflow is saved

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Setup Instructions

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Note Step 1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Note Step 2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Note Step 3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Note Step 4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Note Step 5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Note Step 6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Note Step 7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Every Monday 09:00

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 10 - Fetch Previous Audit

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 11 - Compare Audits

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Store Audit Result

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 13 - Any New Findings?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 14 - Send Alert Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 15 - Generate a security audit

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

3. Summary Table

Workflow Run a weekly n8n security audit and email changes with Supabase and Gmail
Complexity advanced
Nodes 15
Categories SecOps
Author Flowcheckers
Published 21 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15884/15884.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Run a weekly n8n security audit and email changes with Supabase and Gmail do?

How it works If your main Error Diagnosis workflow fails for any reason, this backup workflow sends an alert email to the workflow owner. For a (main) advanced and automated error diagnosis workflo...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your SecOps use case.