# Open-Source Package Security, Licenses & SBOM API Intel (`grimbles/oss-supply-chain-security-sbom-intel`) Actor

Inspect open-source packages across npm, PyPI, Go, Cargo, and Maven using the official OSV.dev vulnerability database, Google Open Source Insights (deps.dev), and npm/PyPI registries. Extract latest versions, SPDX licenses, CVE counts, OpenSSF Scorecard scores, and SBOM supply-chain risk scores.

- **URL**: https://apify.com/grimbles/oss-supply-chain-security-sbom-intel.md
- **Developed by:** [Grimbles Data Labs](https://apify.com/grimbles) (community)
- **Categories:** Developer tools, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.13 / 1,000 open-source package supply-chain audit completeds

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

## Open-Source Package Security, Licenses & SBOM API Intel

**Audit open-source dependencies across `npm`, `PyPI`, `Go`, `Cargo`, `Maven`, and `NuGet` using the official Google/OpenSSF OSV vulnerability API (`api.osv.dev`), Google Open Source Insights (`api.deps.dev`), and public package registries (`registry.npmjs.org`, `pypi.org`).**

Built for **DevSecOps / AppSec teams, AI coding agents (Claude Code, Cursor, MCP), legal license compliance workflows, and automated SBOM pipelines (n8n, CI/CD)** — returning exact **OSV/GHSA/CVE vulnerability counts, SPDX licenses, OpenSSF Scorecard health scores, source GitHub repos, and supply-chain risk scores** with zero API keys required.

***

### Key Features

- **100% Open Supply-Chain Security APIs**: Queries `api.osv.dev/v1/query`, `api.deps.dev/v3`, `registry.npmjs.org`, and `pypi.org`.
- **Multi-Ecosystem SBOM Auditing**: Accepts pinned or unpinned packages (`npm:express`, `npm:@modelcontextprotocol/sdk`, `pypi:requests@2.31.0`, `go:github.com/gin-gonic/gin`, `cargo:serde`, `maven:org.apache.logging.log4j:log4j-core`).
- **Dynamic npm Registry Discovery**: Pass `npmSearchQuery` (e.g., `"mcp"`, `"langchain"`, `"ai-agent"`) to discover and security-audit packages on the fly.
- **OpenSSF Scorecard & Risk Score (`5–100`)**: Combines active CVE counts, SPDX license presence/copyleft checks, and OpenSSF Scorecard ratings.

***

### Sample Output JSON

```json
{
  "ecosystem": "npm",
  "packageName": "express",
  "version": "4.19.2",
  "licenses": ["MIT"],
  "vulnerabilityCount": 1,
  "vulnerabilityIds": ["GHSA-qw52-p2rv-q9h5"],
  "cveAliases": ["CVE-2024-43796"],
  "openssfScorecard": 8.4,
  "sourceRepoUrl": "https://github.com/expressjs/express",
  "homepageUrl": "https://expressjs.com/",
  "starsCount": 65400,
  "openIssuesCount": 182,
  "publishedAt": "2024-04-03T01:15:32Z",
  "supplyChainRiskScore": 30,
  "depsDevUrl": "https://deps.dev/npm/express/4.19.2"
}
```

***

### AI Agent (MCP) & n8n Automation Integration

#### Apify MCP Server (Claude Desktop / Cursor / Windsurf)

```json
{
  "mcpServers": {
    "oss-supply-chain-security-sbom-intel": {
      "url": "https://mcp.apify.com/?tools=grimbles/oss-supply-chain-security-sbom-intel",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

#### n8n / Make HTTP Run-Sync Integration

```json
{
  "method": "POST",
  "url": "https://api.apify.com/v2/acts/grimbles~oss-supply-chain-security-sbom-intel/run-sync-get-dataset-items",
  "headers": {
    "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>",
    "Content-Type": "application/json"
  },
  "body": {
    "packages": ["npm:express", "pypi:jinja2@2.4.1", "go:github.com/gin-gonic/gin"],
    "includeScorecard": true,
    "maxResults": 25
  }
}
```

# Actor input Schema

## `packages` (type: `array`):

List of packages in 'ecosystem:package' or 'ecosystem:package@version' format (ecosystems: npm, pypi, go, cargo, maven, nuget).

## `npmSearchQuery` (type: `string`):

Optional keyword query against the official npm registry search API to dynamically discover and audit npm packages.

## `includeScorecard` (type: `boolean`):

Fetch OpenSSF Scorecard overallScore, GitHub stars, and open issues from deps.dev /v3/projects.

## `onlyVulnerable` (type: `boolean`):

When enabled, returns only audited packages that currently have 1 or more OSV/CVE advisories.

## `maxResults` (type: `integer`):

Maximum number of open-source package security & license records to output.

## Actor input object example

```json
{
  "packages": [
    "npm:express",
    "npm:lodash",
    "npm:axios",
    "pypi:requests",
    "pypi:jinja2",
    "pypi:urllib3",
    "go:github.com/gin-gonic/gin",
    "cargo:serde"
  ],
  "npmSearchQuery": "",
  "includeScorecard": true,
  "onlyVulnerable": false,
  "maxResults": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing audited npm, PyPI, Go, Cargo, and Maven packages with CVE advisories, licenses, and OpenSSF Scorecard scores.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("grimbles/oss-supply-chain-security-sbom-intel").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("grimbles/oss-supply-chain-security-sbom-intel").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 '{}' |
apify call grimbles/oss-supply-chain-security-sbom-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,grimbles/oss-supply-chain-security-sbom-intel"
        }
    }
}
```

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/4Qc6O2xjZfVXoujid/builds/0NSXXka7aGFTcpZrO/openapi.json
