# GitHub Dependency Risk Triage with OSV (`thirdwatch/github-dependency-risk-triage`) Actor

Read dependency manifests through a GitHub MCP connector, check pinned versions against OSV, and create or update a source-linked review issue without changing code.

- **URL**: https://apify.com/thirdwatch/github-dependency-risk-triage.md
- **Developed by:** [Thirdwatch](https://apify.com/thirdwatch) (community)
- **Categories:** Developer tools, Automation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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 Dependency Risk Triage with OSV

> **Thirdwatch portfolio:** 8,800+ users across 140+ public Actors, 2M+ records delivered, >95% run success. [Explore all Thirdwatch Actors](https://apify.com/thirdwatch).

> Triage dependency risk in a GitHub repo — read manifests, check packages against OSV vulnerabilities, and open a triage issue.

### What you get

Triage dependency risk in a GitHub repo — read manifests, check packages against OSV vulnerabilities, and open a triage issue.

### Why use GitHub Dependency Risk Triage with OSV

- **Manifest scanning** — reads `package.json` and pinned `requirements.txt` directly from your repo.
- **OSV vulnerability data** — matches exact package versions against the open OSV database.
- **Issue output** — writes (or updates) a single triage issue in the repo, with a dry-run mode for safe testing.

### Quick start

```json
{
  "manifestPaths": [
    "package.json",
    "requirements.txt"
  ]
}
```

### Input parameters

| Parameter | Required | Description |
|---|---:|---|
| `githubConnector` | No | Authorized GitHub connector limited to reading files, searching issues, and creating or updating an issue. |
| `owner` | No | GitHub user or organization that owns the repository. |
| `repo` | No | Repository name without the owner or URL. |
| `ref` | No | Optional branch, tag, or full ref. Leave empty for the default branch. Default: ``. |
| `manifestPaths` | Yes | Supports package.json and pinned requirements.txt entries. Missing paths are reported and skipped. Default: `['package.json', 'requirements.txt']`. |
| `maxPackages` | No | Stop after this many distinct pinned versions across the selected manifests. Default: `100`. |
| `updateExistingIssue` | No | Search for the stable issue title and update it instead of opening duplicates. Default: `True`. |
| `issueLabels` | No | Labels must already exist in the repository. Leave empty when unsure. Default: `[]`. |
| `dryRun` | No | Read manifests and run OSV without writing a GitHub issue. Default: `True`. |
| `confirmWriteTarget` | No | Required when Dry run is off. Enter the exact owner/repo and write only to a repository you own or are explicitly authorized to modify. Default: ``. |

### Output fields

- `repository`
- `ref`
- `manifests_read`
- `manifest_errors`
- `packages_checked`
- `advisories_found`
- `decision`
- `setup_required`
- `message`
- `github_issue_url`
- `issue_action`
- `osv_run_id`
- `scanned_at`

#### Example result

```json
{
  "repository": "not configured",
  "ref": "default",
  "manifests_read": [],
  "manifest_errors": {},
  "packages_checked": 0,
  "advisories_found": 0,
  "decision": "SETUP_REQUIRED",
  "setup_required": [
    "githubConnector",
    "owner",
    "repo"
  ],
  "message": "Select a GitHub MCP connector and enter a repository owner and name, then run again.",
  "github_issue_url": null,
  "issue_action": "not_written",
  "osv_run_id": null,
  "scanned_at": "2026-08-30T20:28:59.719399+00:00"
}
```

### Common use cases

- Audit repo dependencies for known CVEs
- Automate security review in CI-adjacent workflows
- Get a human-readable risk issue without a full SCA tool

### Compared to alternatives

- **vs other GitHub Dependency Risk Triage with OSV scrapers on the Store** — pay-per-result billing means empty or failed searches cost nothing; you are not charged for a run that returns zero rows.
- **vs building your own** — no markup-change maintenance or infrastructure to run; paste inputs and consume the dataset.

### Limitations

- Requires an authorized GitHub connector for repo access.
- Covers `package.json` and pinned `requirements.txt` manifests.
- Set `dryRun: true` to inspect results without writing issues.

### FAQ

**Do I need an account or cookies?**

No — the Actor reads public data only. There is no login to configure and no account to risk.

**What happens when a search returns nothing?**

The run completes with zero (or an explicit error) rows. Per-result billing means you are not charged for empty output.

**Can I run it on a schedule?**

Yes — attach an Apify schedule or use the saved tasks to re-run the same inputs daily or weekly.

### Related guides and Actors

- [Compare Github Dependency Risk Technical Side By Side](https://thirdwatch.dev/blog/compare-github-dependency-risk-technical-side-by-side)
- [Export Github Dependency Risk Technical To Csv](https://thirdwatch.dev/blog/export-github-dependency-risk-technical-to-csv)
- [Extract Github Dependency Risk Technical At Scale](https://thirdwatch.dev/blog/extract-github-dependency-risk-technical-at-scale)
- [GitHub Doc Link Auditor](https://apify.com/thirdwatch/github-doc-link-auditor?fpr=9m2cd6)
- [NVD CVE Scraper](https://apify.com/thirdwatch/nvd-cve-scraper?fpr=9m2cd6)

Last verified: 2026-09

More scrapers at [thirdwatch.dev](https://thirdwatch.dev).

# Actor input Schema

## `githubConnector` (type: `string`):

Authorized GitHub connector limited to reading files, searching issues, and creating or updating an issue.

## `owner` (type: `string`):

GitHub user or organization that owns the repository.

## `repo` (type: `string`):

Repository name without the owner or URL.

## `ref` (type: `string`):

Optional branch, tag, or full ref. Leave empty for the default branch.

## `manifestPaths` (type: `array`):

Supports package.json and pinned requirements.txt entries. Missing paths are reported and skipped.

## `maxPackages` (type: `integer`):

Stop after this many distinct pinned versions across the selected manifests.

## `updateExistingIssue` (type: `boolean`):

Search for the stable issue title and update it instead of opening duplicates.

## `issueLabels` (type: `array`):

Labels must already exist in the repository. Leave empty when unsure.

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

Read manifests and run OSV without writing a GitHub issue.

## `confirmWriteTarget` (type: `string`):

Required when Dry run is off. Enter the exact owner/repo and write only to a repository you own or are explicitly authorized to modify.

## Actor input object example

```json
{
  "ref": "",
  "manifestPaths": [
    "package.json",
    "requirements.txt"
  ],
  "maxPackages": 100,
  "updateExistingIssue": true,
  "issueLabels": [],
  "dryRun": true,
  "confirmWriteTarget": ""
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "manifestPaths": [
        "package.json",
        "requirements.txt"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/github-dependency-risk-triage").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 = { "manifestPaths": [
        "package.json",
        "requirements.txt",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/github-dependency-risk-triage").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 '{
  "manifestPaths": [
    "package.json",
    "requirements.txt"
  ]
}' |
apify call thirdwatch/github-dependency-risk-triage --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thirdwatch/github-dependency-risk-triage"
        }
    }
}
```

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/mQW52M03Q22MGjR6h/builds/ojSXdmdPSgscSzEYP/openapi.json
