Send critical NPM CVE alerts from GitHub to Slack via Apify
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs on a schedule (cron 0 9 * * 1). Along the way it connects Slack. It also calls api.github.com and api.apify.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 9 * * 1).
- Retrieve GitHub Package JSON (HTTP Request): calls api.github.com (GET)
- Parse GitHub Package JSON (Code): runs custom JavaScript code
- Execute CVE Monitor Script (HTTP Request): calls api.apify.com (POST)
- Retrieve CVE Audit Results (HTTP Request): calls an HTTP API (GET)
- Classify CVE Vulnerabilities (Code): runs custom JavaScript code
- Check Critical or High CVE (If): checks a condition and branches into true / false
- Create Emergency Slack Alert (Code): runs custom JavaScript code
- Send Slack CVE Alert (Slack): uses Slack
Services it uses
Other Apify + Slack templates (140) · Other GitHub + Slack templates (68)
HTTP calls to: api.github.com, api.apify.com
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs every Monday at 9am to fetch your repository’s package.json from GitHub, scan it for vulnerabilities using the Apify NPM CVE Monitor actor, and send an emergency alert to a Slack channel only when high or critical issues (or…