# 🛡️ GitHub Org Security & Dependency Auditor (`automation_studio/github-org-security-auditor`) Actor

Audits public GitHub organizations for unpatched CVE vulnerabilities (via Google OSV), outdated software dependencies, copyleft license risks (GPL/AGPL), and sensitive configuration file templates.

- **URL**: https://apify.com/automation\_studio/github-org-security-auditor.md
- **Developed by:** [Automation Studio](https://apify.com/automation_studio) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 verified sec filing & transaction alerts

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 Public Organization Security & Dependency Health Auditor

Conduct automated outside-in **cybersecurity risk assessments** and **open-source software supply chain audits** across public GitHub organizations.

Discover unpatched CVE and GHSA vulnerabilities, outdated dependency technical debt, and restrictive copyleft license contamination risks across public repositories — **with zero API keys or tokens required**.

***

### 🌟 Why Use This Auditor?

B2B cybersecurity intelligence firms, venture capital technical due-diligence teams, corporate IT risk departments, and software supply chain auditors constantly monitor organizations to assess their digital attack surface.

| Traditional Scanners | 🛡️ GitHub Security & Dependency Health Auditor |
| :--- | :--- |
| ❌ Requires admin GitHub OAuth access to every repo | ✅ **100% tokenless outside-in scanning** of public repositories |
| ❌ Requires heavy local CLI installations & agents | ✅ **Cloud-native execution** via Apify with automated scheduling |
| ❌ Proprietary closed vulnerability databases | ✅ **Official Google OSV API** matching CVE & GitHub Security Advisories |
| ❌ Messy unstructured logs or bloated JSON blobs | ✅ **Pristine tabular dataset** ready for CSV, Excel, BigQuery, or BI |
| ❌ Misses license contamination | ✅ **Flags copyleft licenses (GPL/AGPL/SSPL)** in commercial codebases |

***

### 🚀 Key Capabilities

- **🔍 Multi-Ecosystem Manifest Inspection**:
  Parses `package.json` (npm / JavaScript & TypeScript), `requirements.txt` / `pyproject.toml` (PyPI / Python), `go.mod` (Go), `Cargo.toml` (Rust), and `pom.xml` (Maven / Java).
- **⚠️ Real-Time CVE & GHSA Advisory Matching**:
  Queries the open **Google OSV API** to identify known security vulnerabilities with CVSS scores, vulnerability descriptions, and recommended upstream fix versions.
- **📦 Registry Release & Outdated Debt Tracking**:
  Checks official upstream registries via **Google deps.dev** to calculate version delta and flag stale dependencies.
- **⚖️ Intellectual Property & License Risk Detection**:
  Detects restrictive copyleft licenses (e.g. GPL-2.0, GPL-3.0, AGPL-3.0, SSPL) that may introduce legal contamination risks for commercial applications.
- **📊 Executive Cyber Health Scorecard**:
  Automatically computes an organizational **Cyber Health Grade (A through F)** and saves an aggregated scorecard to the default Key-Value Store (`OUTPUT` and `SUMMARY`).
- **🔔 Discord & Slack Webhook Notifications**:
  Instantly alerts security teams when CRITICAL or HIGH severity CVEs are identified.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `orgName` | String | `"expressjs"` | The GitHub organization handle to audit (e.g. `pallets`, `expressjs`, `facebook`). |
| `maxRepos` | Integer | `15` | Maximum number of public repositories to discover and scan (1–200). |
| `scanEcosystems` | Array | `["npm", "pypi", "golang", "cargo"]` | Package ecosystems to inspect (`npm`, `pypi`, `golang`, `cargo`, `maven`). |
| `minSeverity` | String | `"ALL"` | Minimum severity threshold (`ALL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`). |
| `checkLicenses` | Boolean | `true` | Flags copyleft licenses (GPL, AGPL, SSPL) posing compliance risks. |
| `includeSummaryInDataset` | Boolean | `false` | When `false` (Recommended), dataset contains 100% clean finding rows, and the executive scorecard is stored in Key-Value Store. |
| `githubToken` | String (Secret) | `null` | Optional GitHub Personal Access Token to raise API rate limits for high-volume enterprise scans. |
| `webhookUrl` | String | `null` | Optional Discord or Slack webhook URL for real-time threat notifications. |

#### Example Input

```json
{
  "orgName": "expressjs",
  "maxRepos": 15,
  "scanEcosystems": ["npm"],
  "minSeverity": "ALL",
  "checkLicenses": true,
  "includeSummaryInDataset": false
}
```

***

### 📤 Output Structure

#### 1. Tabular Dataset (`items`)

Every dataset row represents an audited dependency finding with consistent columns, ideal for immediate export to CSV, Excel, or Google Sheets:

```json
{
  "isSummaryCard": false,
  "orgName": "expressjs",
  "repoName": "express",
  "repoUrl": "https://github.com/expressjs/express",
  "manifestPath": "package.json",
  "manifestUrl": "https://github.com/expressjs/express/blob/master/package.json",
  "ecosystem": "npm",
  "packageName": "qs",
  "installedVersion": "6.13.0",
  "latestVersion": "6.14.0",
  "isOutdated": true,
  "hasVulnerability": false,
  "severity": "CLEAN",
  "cvssScore": 0.0,
  "vulnerabilityIds": null,
  "advisorySummary": null,
  "fixVersion": null,
  "license": "BSD-3-Clause",
  "isCopyleftRisk": false,
  "discoveredAt": "2026-09-23T14:30:00.000Z"
}
```

#### 2. Executive Scorecard (`OUTPUT` & `SUMMARY` in Key-Value Store)

Access high-level organizational posture without polluting CSV/Excel rows:

```json
{
  "isSummaryCard": true,
  "orgName": "expressjs",
  "securityGrade": "B",
  "discoveredAt": "2026-09-23T14:30:00.000Z",
  "totalReposAudited": 15,
  "reposWithVulnerabilities": 1,
  "totalDependenciesAudited": 42,
  "totalVulnerabilities": 2,
  "criticalCount": 0,
  "highCount": 0,
  "mediumCount": 2,
  "lowCount": 0,
  "outdatedDependenciesCount": 9,
  "copyleftLicensesCount": 0,
  "topThreatRepositories": [
    {
      "repoName": "express",
      "critical": 0,
      "high": 0,
      "medium": 2,
      "low": 0,
      "total": 2
    }
  ]
}
```

***

### 🛡️ Responsible Disclosure & Legal Notice

This Actor queries only **publicly accessible open-source codebases** and **public vulnerability registries (Google OSV, deps.dev)**. It performs zero active penetration testing, exploitation, or payload delivery. All data retrieved consists of public software dependencies and known vulnerability disclosures.

# Actor input Schema

## `orgName` (type: `string`):

The GitHub organization name or handle to audit (e.g., 'expressjs', 'pallets', 'airbnb', 'facebook', 'hashicorp').

## `maxRepos` (type: `integer`):

Maximum number of public repositories to discover and scan for manifest files. Higher limits will inspect deeper repository portfolios.

## `scanEcosystems` (type: `array`):

Select which package ecosystems to scan. The auditor parses package.json (npm), requirements.txt/pyproject.toml (PyPI), go.mod (Go), Cargo.toml (Rust), and pom.xml (Maven).

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

Filter findings by minimum vulnerability threat severity level.

## `checkLicenses` (type: `boolean`):

Flags packages utilizing restrictive copyleft licenses (e.g. GPL-2.0, GPL-3.0, AGPL-3.0, SSPL) that may pose intellectual property or commercial contamination risks.

## `includeSummaryInDataset` (type: `boolean`):

If TRUE, includes the top-level Organization Security Scorecard as record #1 in the dataset. If FALSE (Recommended), the dataset contains 100% pure, clean findings rows for pristine CSV/Excel exports, while the scorecard is accessible in the Key-Value Store (OUTPUT / SUMMARY).

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

Optional: Supply a GitHub Personal Access Token (classic or fine-grained) to increase API rate limits from 60 req/hr to 5,000 req/hr. Leave blank to run in tokenless public mode.

## `webhookUrl` (type: `string`):

Optional Discord or Slack webhook URL to receive instant notification alerts when CRITICAL or HIGH severity CVEs are discovered.

## `proxyConfiguration` (type: `object`):

GitHub public APIs and Google OSV/deps.dev endpoints are open. Proxy is optional.

## Actor input object example

```json
{
  "orgName": "expressjs",
  "maxRepos": 15,
  "scanEcosystems": [
    "npm",
    "pypi",
    "golang",
    "cargo"
  ],
  "minSeverity": "ALL",
  "checkLicenses": true,
  "includeSummaryInDataset": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset containing verified repository software dependencies, known CVE vulnerabilities, severity ratings, fix versions, license types, and direct GitHub manifest links

## `summary` (type: `string`):

Aggregated organizational cyber health grade (A through F), total repositories inspected, vulnerability counts by severity, copyleft risk exposure, and top unpatched packages

# 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 = {
    "orgName": "expressjs"
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation_studio/github-org-security-auditor").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 = { "orgName": "expressjs" }

# Run the Actor and wait for it to finish
run = client.actor("automation_studio/github-org-security-auditor").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 '{
  "orgName": "expressjs"
}' |
apify call automation_studio/github-org-security-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation_studio/github-org-security-auditor"
        }
    }
}
```

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/H9vZx5fihPf12PG5i/builds/mJlm439f8jSGuumdF/openapi.json
