# GitHub Releases, Security Advisories & PyPI/npm Delta Monitor (`simon_kundrik/github-package-release-cve-monitor`) Actor

Monitor GitHub repositories, PyPI packages, and npm packages for new releases, version updates, deprecations, yanked builds, and OSV.dev CVE/GHSA security advisories with stateful delta alerts. Zero proxies, zero API keys required.

- **URL**: https://apify.com/simon_kundrik/github-package-release-cve-monitor.md
- **Developed by:** [Kundrik Apps](https://apify.com/simon_kundrik) (community)
- **Categories:** Developer tools, Automation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 release or cves advisory emitted

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## GitHub Releases, Security Advisories & PyPI/npm Delta Monitor

Monitor **GitHub repositories, PyPI packages, and npm packages** for **new releases, version updates, yanked builds, package deprecations, and CVE / GHSA security advisories (via Google OSV.dev)** with **stateful delta alerts**: zero proxies and zero API keys required.

Built for **DevSecOps teams, dependency managers, Slack/Discord/Teams alerts, n8n/Make/Zapier pipelines, and AI / MCP coding agents**.

***

### Key Features

- **Multi-Ecosystem Coverage in One Actor:**
  - **GitHub Releases:** Tracks `owner/repo` releases via GitHub REST API with **automatic fallback to public `releases.atom` feeds** if rate-limited. Optional `githubToken` unlocks 5,000 req/hr and private repos.
  - **PyPI Packages:** Tracks new releases, yanked versions, upload timestamps, and summaries via official PyPI JSON.
  - **npm Packages:** Tracks `latest` versions (including scoped `@org/pkg` packages) and deprecation notices via official npm Registry metadata.
  - **OSV.dev CVE & GHSA Advisories:** Queries Google's official Open Source Vulnerability API for CVEs and GitHub Security Advisories with severity filtering (`CRITICAL`, `HIGH`, `MEDIUM`, `LOW`).
- **Stateful Delta Tracking:** Persists seen versions and advisory IDs in your Apify Key-Value Store (`release-cve-monitor-state`) so scheduled runs emit **zero duplicates**.
- **Ultra-Lightweight:** 256 MB RAM, zero headless browser, zero proxies: typically completes in ~3–6 seconds.

***

### Example Input

```json
{
  "githubRepos": ["anthropics/claude-code", "openai/openai-python"],
  "pypiPackages": ["fastapi", "pydantic"],
  "npmPackages": ["next"],
  "checkVulnerabilities": true,
  "minSeverity": "HIGH",
  "deltaMode": true,
  "firstRunMode": "emit_baseline"
}
```

***

### Example Output Record

```json
{
  "eventType": "new_vulnerability",
  "ecosystem": "npm",
  "package": "next",
  "version": "",
  "previousVersion": null,
  "title": "Server-side request forgery in Next.js",
  "summary": "Affected versions allow crafted requests to bypass middleware checks.",
  "advisoryId": "GHSA-xxxx-xxxx-xxxx",
  "cveIds": ["CVE-2026-12345"],
  "severity": "HIGH",
  "publishedAt": "2026-12-01T14:00:00Z",
  "url": "https://github.com/advisories/GHSA-xxxx-xxxx-xxxx",
  "detectedAt": "2026-12-03T23:15:00Z"
}
```

***

### Pricing (Pay-Per-Event)

- **`package-checked`:** `$0.0005` per repo or package checked
- **`event-emitted`:** `$0.002` per new release, version, deprecation, or CVE advisory emitted

*(Free Apify plan runs are capped at 5 targets and 25 output items per run; any paid Apify plan removes these caps.)*

#### Realistic Monthly Cost Examples

| Schedule & Scope | Monthly Target Checks | Est. Releases & CVEs / Mo | Total Monthly Cost |
|---|---|---|---|
| 25 core stack packages checked daily | 750 | 40 | **~$0.46 / month** |
| 50 GitHub repos + npm/PyPI deps checked every 6 hours | 6,000 | 120 | **~$3.24 / month** |
| 100 enterprise dependencies audited daily for HIGH/CRITICAL CVEs | 3,000 | 80 | **~$1.66 / month** |

### Automation & AI Agent Recipes

#### 1. Apify MCP Server (DevSecOps & Coding Agents)

Connect `https://mcp.apify.com` and ask your agent:

> *"Run `simon_kundrik/github-package-release-cve-monitor` on `pypiPackages: ["fastapi", "pydantic"]` and `npmPackages: ["next"]` with `minSeverity: "HIGH"` and flag any new CVEs."*

#### 2. Automated Dependency Security Alerts (n8n / Make / Slack)

- **Ready-to-import n8n template:** Download [`release-cve-slack-alert.json`](https://kundrikapps.co.uk/templates/release-cve-slack-alert.json) ([setup guide](https://kundrikapps.co.uk/templates/#release-cve-n8n)).

1. Schedule daily or every 6 hours with `deltaMode: true` and `checkVulnerabilities: true`.
2. Route `eventType == "new_vulnerability"` straight into `#security-alerts` or Jira/Linear issue creation, and `eventType == "new_release"` into `#engineering-changelog`.

#### 3. Direct REST API (cURL)

```bash
curl -X POST "https://api.apify.com/v2/acts/simon_kundrik~github-package-release-cve-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"githubRepos":["anthropics/claude-code"],"pypiPackages":["fastapi"],"npmPackages":["next"],"firstRunMode":"emit_baseline"}'
```

### Frequently Asked Questions

**What happens if unauthenticated GitHub REST API rate limits are hit?**
The Actor automatically falls back to GitHub's public `releases.atom` feed so public repo tracking stays reliable without a token. Passing an optional `githubToken` unlocks 5,000 req/hr and private repos.

**Where does CVE vulnerability data come from?**
From Google's official **OSV.dev** vulnerability database, covering CVE IDs and GitHub Security Advisories (GHSA) across PyPI and npm ecosystems.

**Does it support scoped npm packages like `@types/node` or `@angular/core`?**
Yes. Scoped npm packages are URL-encoded automatically against the official npm registry API.

**Built & Maintained by [Kundrik Apps](https://kundrikapps.co.uk)** (UK). Support: `support@kundrikapps.co.uk`.

# Actor input Schema

## `githubRepos` (type: `array`):

GitHub repositories to monitor for new releases (e.g. 'anthropics/claude-code', 'openai/openai-python', or full https://github.com/owner/repo URLs). Automatically falls back to public Atom feeds if REST API rate-limited.

## `pypiPackages` (type: `array`):

Python packages on PyPI to monitor for new versions, yanked releases, and OSV.dev CVEs (e.g. 'fastapi', 'pydantic').

## `npmPackages` (type: `array`):

JavaScript/TypeScript packages on npm to monitor for new versions, deprecation notices, and OSV.dev CVEs (e.g. 'next', '@modelcontextprotocol/sdk').

## `includePrereleases` (type: `boolean`):

When enabled, also tracks GitHub pre-releases and npm/PyPI pre-release versions.

## `checkVulnerabilities` (type: `boolean`):

Query the official free OSV.dev API for CVEs and GHSA security advisories affecting monitored PyPI and npm packages.

## `minSeverity` (type: `string`):

Filter emitted vulnerability alerts by minimum severity threshold.

## `githubToken` (type: `string`):

Optional GitHub token to raise REST API rate limit from 60/hr to 5,000/hr and inspect private repos. Not required for public repos.

## `deltaMode` (type: `boolean`):

Persist seen versions and advisory IDs in your Apify Key-Value Store so subsequent runs emit only brand-new releases and CVEs.

## `firstRunMode` (type: `string`):

How to handle a newly monitored package/repo on first run: emit_baseline outputs latest version + recent advisories, emit_vulns_only outputs advisories only, baseline_only silently stores state.

## `maxAdvisoriesPerPackage` (type: `integer`):

Maximum number of recent OSV advisories emitted per package on first run (all new advisories are always emitted on delta runs).

## `stateStoreName` (type: `string`):

Named Apify Key-Value Store used to persist release and vulnerability baselines.

## `stateNamespace` (type: `string`):

Partition key inside the state store so multiple watchlists stay independent.

## `maxTotalItems` (type: `integer`):

Hard ceiling on dataset rows emitted per run (Free Apify plans are capped at 5 targets and 25 items).

## `requestTimeoutSecs` (type: `integer`):

HTTP timeout for GitHub, PyPI, npm, and OSV.dev API calls.

## `dryRun` (type: `boolean`):

Run all checks and emit dataset rows without overwriting saved delta state.

## Actor input object example

```json
{
  "githubRepos": [
    "anthropics/claude-code",
    "openai/openai-python"
  ],
  "pypiPackages": [
    "fastapi",
    "pydantic"
  ],
  "npmPackages": [
    "next"
  ],
  "includePrereleases": false,
  "checkVulnerabilities": true,
  "minSeverity": "ALL",
  "deltaMode": true,
  "firstRunMode": "emit_baseline",
  "maxAdvisoriesPerPackage": 2,
  "stateStoreName": "release-cve-monitor-state",
  "stateNamespace": "default",
  "maxTotalItems": 500,
  "requestTimeoutSecs": 15,
  "dryRun": false
}
```

# Actor output Schema

## `eventsDataset` (type: `string`):

Structured release and advisory records including eventType, ecosystem, package, version, advisoryId, severity, summary, and url.

## `runSummary` (type: `string`):

Execution summary including targets checked, releases and vulnerabilities emitted, event counts, and errors.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "githubRepos": [
        "anthropics/claude-code",
        "openai/openai-python"
    ],
    "pypiPackages": [
        "fastapi",
        "pydantic"
    ],
    "npmPackages": [
        "next"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("simon_kundrik/github-package-release-cve-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "githubRepos": [
        "anthropics/claude-code",
        "openai/openai-python",
    ],
    "pypiPackages": [
        "fastapi",
        "pydantic",
    ],
    "npmPackages": ["next"],
}

# Run the Actor and wait for it to finish
run = client.actor("simon_kundrik/github-package-release-cve-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "githubRepos": [
    "anthropics/claude-code",
    "openai/openai-python"
  ],
  "pypiPackages": [
    "fastapi",
    "pydantic"
  ],
  "npmPackages": [
    "next"
  ]
}' |
apify call simon_kundrik/github-package-release-cve-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,simon_kundrik/github-package-release-cve-monitor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/3f8YGyHQyTpFVjMtV/builds/CDlpjKakHU6BNByXI/openapi.json
