Templates / Review new npm dependencies in GitHub pull requests with OpenAI, OSV and Slack

Review new npm dependencies in GitHub pull requests with OpenAI, OSV and Slack

Ready for 3.0

by Atharva Ashtekar ✓ · 0 views · created 2026-11-24 · SecOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 27 nodes and runs on Github events (pull request) (plus 1 other trigger). Along the way it connects GitHub, OpenAI Chat Model, HTTP Request and Slack. It also calls api.osv.dev over HTTP.

How it runs

Trigger: On Github events (pull request) (plus 1 other trigger).

  1. Only Opened or Updated PRs (Filter): keeps only the items that match a condition
  2. Alert Slack That the Check Failed (Slack): post (message)
  3. Set Review Settings (Edit Fields (Set)): sets 10 fields: trustedPackages, minWeeklyDownloads, minAgeDays…
  4. List Changed Files (HTTP Request): calls an HTTP API (GET)
  5. Keep package.json Files (Filter): keeps only the items that match a condition
  6. Read Added Dependencies (Edit Fields (Set)): sets 1 field: newDeps
  7. One Item per Dependency (Split Out): splits a list into separate items
  8. Drop Repeats (Remove Duplicates): removes duplicate items
  9. Skip Trusted Packages (Filter): keeps only the items that match a condition
  10. Review the Dependency (AI Agent): runs an AI agent, with model: Reviewer Model; 6 tools (Think, npm Package Info, Source Repository, npm Install Scripts…); output parser: Verdict Format

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

Services it uses

GitHubOpenAI Chat ModelHTTP RequestSlack

HTTP calls to: api.osv.dev

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (15)

From the author

Quick overview This workflow monitors GitHub pull requests for new npm dependencies, checks each added package using OpenAI plus npm, OSV, and GitHub metadata, and reports results back to the PR and to Slack when a dependency is blocked. How it works 1.…

Excerpt from Atharva Ashtekar'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.