# Review and remediate Kubernetes manifests in GitHub PRs: n8n workflow

> Started by an event in a connected app, and works across GitHub, Postgres and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/review-and-remediate-kubernetes-manifests-in-github-prs (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Review and remediate Kubernetes manifests in GitHub PRs

Started by an event in a connected app, and works across GitHub, Postgres and Slack. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freview-and-remediate-kubernetes-manifests-in-github-prs)

**22 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 8 Logic 4 Service 9

The steps in the order they run, from what starts it.

- 1 **GitHub Trigger - PR Opened/Updated** Github trigger *Starts it*
- 2 **Tool - Scan Privileged Containers** Tool Http Request *Model*
- 3 **Tool - Scan RBAC Permissions** Tool Http Request *Model*
- 4 **Tool - Scan Exposed Services** Tool Http Request *Model*
- 5 **Tool - Scan Resource Limits** Tool Http Request *Model*
- 6 **Tool - RAG Search Security Policies** Tool Vector Store *Model*
- 7 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 8 **Window Buffer Memory** Memory Buffer Window *Model*
- 9 **Set - Config** Set *Logic*
- 10 **AI Agent - K8s Security Reviewer** Agent *Model*
- 11 **Get - PR Manifest Files** Github *Service*
- 12 **Set - Parse Agent Output** Set *Logic*
- 13 **Postgres - Log Security Review** Postgres *Service*
- 14 **GitHub - Post Review Comment** Github *Service*
- 15 **IF - Issues Found** If *Logic*
- 16 **Slack - Request Remediation Approval** Slack *Service*
- 17 **IF - Remediation Approved** If *Logic*
- 18 **GitHub - Create Remediation Branch** Github *Service*
- 19 **Slack - Post Rejection Notice** Slack *Service*
- 20 **GitHub - Commit Secure Manifests** Github *Service*
- 21 **GitHub - Open Remediation PR** Github *Service*
- 22 **Slack - Post Remediation PR Link** Slack *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 22, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** GitHub, Postgres, Slack
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own GitHub, Postgres and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freview-and-remediate-kubernetes-manifests-in-github-prs)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[GitHub](https://millionrounds.com/workflows?service=GitHub#library)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Audit browser and proxy fingerprint/IP integrity with OpenAI** 22 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/audit-browser-and-proxy-fingerprint-ip-integrity-with-openai)
- [**Detect and remediate leaked secret on repo with GitHub and AWS** 22 steps · calls a model · Jira, Slack](https://millionrounds.com/workflow/detect-and-remediate-leaked-secret-on-repo-with-github-and-a)
- [**Detect multi-source transaction fraud and reconcile finances** 22 steps · calls a model · Gmail, Postgres](https://millionrounds.com/workflow/detect-multi-source-transaction-fraud-and-reconcile-finances)
- [**Generate AI camera moves with Seedance** 22 steps · calls a model · ClickUp, Google Drive](https://millionrounds.com/workflow/generate-ai-camera-moves-with-seedance)
- [**Generate contextual recommendations from Slack with Pinecone** 22 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-contextual-recommendations-from-slack-with-pinecone)
- [**Get a daily cybersecurity news digest on Telegram and Slack** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/get-a-daily-cybersecurity-news-digest-on-telegram-and-slack)
