Back to Workflow Library
Developer OperationsDifficulty: Intermediate 6 Nodes · Verified 2026-10-17
Automated GitHub Pull Request Diff & Security Auditor
Triggered on every Pull Request webhook: fetches the git diff, checks for hardcoded secrets or SQL injection risks, and posts inline review comments.
Interactive Pipeline Architecture
Click any node below to inspect its configuration
Integrations: GitHub Webhooks → Claude 3.7 Sonnet → GitHub REST API
Active Node: GitHub Webhook
Listens for pull_request.opened and synchronize
Node Role: Trigger
Step-by-Step Setup Instructions
- 1Import the workflow JSON and copy the generated n8n Webhook URL.
- 2In your GitHub repository Settings -> Webhooks, add the URL and select 'Pull requests'.
- 3Configure your GitHub Personal Access Token (repo scope) and Anthropic API key.
Connected Services & Credentials
GitHub WebhooksClaude 3.7 SonnetGitHub REST API
Production Error-Handling Notes
Automatically skips binary files, lockfiles (package-lock.json), and diffs larger than 120KB to prevent token overflow.
github-pr-ai-security-reviewer.n8n.json
{
"name": "DevHubTools - GitHub PR AI Security Auditor",
"nodes": [
{
"id": "1",
"name": "GitHub PR Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
200,
280
]
},
{
"id": "2",
"name": "Fetch Diff Files",
"type": "n8n-nodes-base.httpRequest",
"position": [
440,
280
]
},
{
"id": "3",
"name": "Claude Security Analyzer",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
680,
280
]
},
{
"id": "4",
"name": "Post GitHub Review Comment",
"type": "n8n-nodes-base.github",
"position": [
920,
280
]
}
]
} Full Production Bundle
AI Agent Starter Kit ($19)
A clean, framework-light TypeScript skeleton for building reliable AI agents without heavy abstraction bloat. Includes tool-calling loops, JSON schema output enforcement, SQLite/Turso conversation memory, and automatic retry with exponential backoff.