Templates / Review and remediate Kubernetes manifests in GitHub PRs with GPT-4.1

Review and remediate Kubernetes manifests in GitHub PRs with GPT-4.1

Needs changes

by Oneclick AI Squad ✓ · 2 views · created 2026-09-05 · SecOps, AI RAG

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: HTTP Request Tool (legacy), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs on Github events (pull request). Along the way it connects GitHub, HTTP Request, Vector Store Question Answer and OpenAI Chat Model and 2 more.

How it runs

Trigger: On Github events (pull request).

  1. Set - Config (Edit Fields (Set)): sets 8 fields: prNumber, repoOwner, repoName…
  2. Get - PR Manifest Files (GitHub): get files (pull request)
  3. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 5 tools (Tool - Scan Resource Limits, Tool - Scan Exposed Services, Tool - Scan RBAC Permissions, Tool - Scan Privileged Containers…); memory: Window Buffer Memory
  4. Set - Parse Agent Output (Edit Fields (Set)): sets 1 field: parsedOutput
  5. Postgres: uses Postgres
  6. GitHub: create comment
  7. If: checks a condition and branches into true / false
  8. Slack: uses Slack
  9. If: checks a condition and branches into true / false
  10. GitHub: create branch (repository)

…plus 4 more steps. See the full node list below.

Services it uses

GitHubHTTP RequestVector Store Question AnswerOpenAI Chat ModelPostgresSlack

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • HTTP Request Tool (legacy) in Tool - Scan Privileged Containers, Tool - Scan RBAC Permissions, Tool - Scan Exposed Services…: replace with HTTP Request node connected to the AI Agent's Tool input.
  • AI Agent v1 (old agent modes) in AI Agent - K8s Security Reviewer (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
HTTP Request Tool (legacy)
Tool - Scan Privileged Containers, Tool - Scan RBAC Permissions, Tool - Scan Exposed Services, Tool - Scan Resource Limits
HTTP Request node connected to the AI Agent's Tool input
AI Agent v1 (old agent modes)
AI Agent - K8s Security Reviewer (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

From the author

Quick overview This workflow reviews Kubernetes manifest changes in GitHub pull requests using OpenAI with policy RAG and external scanner APIs, logs results to Postgres, posts findings back to the PR, and—after Slack approval—commits secure manifest fixes to…

Excerpt from Oneclick AI Squad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.