# SBOM Policy Evidence Gate (`ceddl/sbom-policy-evidence-gate`) Actor

Evaluate bounded CycloneDX or SPDX JSON SBOMs against a versioned technical policy and emit durable JSON and SARIF evidence.

- **URL**: https://apify.com/ceddl/sbom-policy-evidence-gate.md
- **Developed by:** [Cedric Günther](https://apify.com/ceddl) (community)
- **Categories:** Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 sbom policy evaluateds

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/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

## SBOM Policy Evidence Gate

Deterministically evaluate bounded inline CycloneDX JSON 1.5/1.6 or SPDX JSON
2.3 SBOMs against a versioned technical policy. The Actor emits stable dataset
evidence, normalized JSON reports, SARIF 2.1.0, hashes, and fingerprints.

The v1 runtime is offline. It does not fetch schemas, query vulnerability
services, scan repositories or images, validate attestations, or provide legal
license/compliance conclusions. See `PRODUCT_SPEC.md` and
`DEPENDENCY_LICENSING_FIXTURE_PRECHECK.md`.

# Actor input Schema

## `items` (type: `array`):

CycloneDX JSON 1.5/1.6 or SPDX JSON 2.3 documents evaluated independently.

## `policy` (type: `object`):

Deterministic provenance, component, relationship, and license checks applied to every SBOM.

## `maxSbomBytes` (type: `integer`):

Reject an SBOM when its canonical JSON representation exceeds this byte limit.

## `maxComponents` (type: `integer`):

Reject an SBOM when its component count exceeds this limit.

## `maxRelationships` (type: `integer`):

Reject an SBOM when its relationship count exceeds this limit.

## `maxFindings` (type: `integer`):

Stop collecting findings for an SBOM after this limit is reached.

## Actor input object example

```json
{
  "items": [
    {
      "id": "synthetic-supplier-pass",
      "sbom": {
        "bomFormat": "CycloneDX",
        "specVersion": "1.6",
        "serialNumber": "urn:uuid:11111111-2222-4333-8444-555555555555",
        "version": 1,
        "metadata": {
          "timestamp": "2026-09-17T12:00:00Z",
          "tools": [
            {
              "vendor": "Example Invalid Labs",
              "name": "Synthetic SBOM Builder",
              "version": "1.0.0"
            }
          ],
          "component": {
            "type": "application",
            "bom-ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
            "name": "supplier-app",
            "version": "1.0.0",
            "purl": "pkg:generic/example.invalid/supplier-app@1.0.0"
          }
        },
        "components": [
          {
            "type": "library",
            "bom-ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
            "name": "clear-widget",
            "version": "2.1.0",
            "purl": "pkg:generic/example.invalid/clear-widget@2.1.0",
            "licenses": [
              {
                "license": {
                  "id": "MIT"
                }
              }
            ]
          }
        ],
        "dependencies": [
          {
            "ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
            "dependsOn": [
              "pkg:generic/example.invalid/clear-widget@2.1.0"
            ]
          },
          {
            "ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
            "dependsOn": []
          }
        ]
      }
    }
  ],
  "policy": {
    "name": "synthetic-supplier-intake",
    "version": "1.0.0",
    "requireDocumentProvenance": true,
    "requiredComponentFields": [
      "name",
      "version"
    ],
    "deniedLicenses": [
      "GPL-3.0-only"
    ],
    "allowedLicenses": [],
    "unknownLicenseBehavior": "DENY",
    "deniedPurls": [],
    "requireRelationshipIntegrity": true
  },
  "maxSbomBytes": 2000000,
  "maxComponents": 5000,
  "maxRelationships": 10000,
  "maxFindings": 1000
}
```

# Actor output Schema

## `evidence` (type: `string`):

No description

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

No description

## `reports` (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 = {
    "items": [
        {
            "id": "synthetic-supplier-pass",
            "sbom": {
                "bomFormat": "CycloneDX",
                "specVersion": "1.6",
                "serialNumber": "urn:uuid:11111111-2222-4333-8444-555555555555",
                "version": 1,
                "metadata": {
                    "timestamp": "2026-09-17T12:00:00Z",
                    "tools": [
                        {
                            "vendor": "Example Invalid Labs",
                            "name": "Synthetic SBOM Builder",
                            "version": "1.0.0"
                        }
                    ],
                    "component": {
                        "type": "application",
                        "bom-ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
                        "name": "supplier-app",
                        "version": "1.0.0",
                        "purl": "pkg:generic/example.invalid/supplier-app@1.0.0"
                    }
                },
                "components": [
                    {
                        "type": "library",
                        "bom-ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
                        "name": "clear-widget",
                        "version": "2.1.0",
                        "purl": "pkg:generic/example.invalid/clear-widget@2.1.0",
                        "licenses": [
                            {
                                "license": {
                                    "id": "MIT"
                                }
                            }
                        ]
                    }
                ],
                "dependencies": [
                    {
                        "ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
                        "dependsOn": [
                            "pkg:generic/example.invalid/clear-widget@2.1.0"
                        ]
                    },
                    {
                        "ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
                        "dependsOn": []
                    }
                ]
            }
        }
    ],
    "policy": {
        "name": "synthetic-supplier-intake",
        "version": "1.0.0",
        "requireDocumentProvenance": true,
        "requiredComponentFields": [
            "name",
            "version"
        ],
        "deniedLicenses": [
            "GPL-3.0-only"
        ],
        "allowedLicenses": [],
        "unknownLicenseBehavior": "DENY",
        "deniedPurls": [],
        "requireRelationshipIntegrity": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ceddl/sbom-policy-evidence-gate").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 = {
    "items": [{
            "id": "synthetic-supplier-pass",
            "sbom": {
                "bomFormat": "CycloneDX",
                "specVersion": "1.6",
                "serialNumber": "urn:uuid:11111111-2222-4333-8444-555555555555",
                "version": 1,
                "metadata": {
                    "timestamp": "2026-09-17T12:00:00Z",
                    "tools": [{
                            "vendor": "Example Invalid Labs",
                            "name": "Synthetic SBOM Builder",
                            "version": "1.0.0",
                        }],
                    "component": {
                        "type": "application",
                        "bom-ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
                        "name": "supplier-app",
                        "version": "1.0.0",
                        "purl": "pkg:generic/example.invalid/supplier-app@1.0.0",
                    },
                },
                "components": [{
                        "type": "library",
                        "bom-ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
                        "name": "clear-widget",
                        "version": "2.1.0",
                        "purl": "pkg:generic/example.invalid/clear-widget@2.1.0",
                        "licenses": [{ "license": { "id": "MIT" } }],
                    }],
                "dependencies": [
                    {
                        "ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
                        "dependsOn": ["pkg:generic/example.invalid/clear-widget@2.1.0"],
                    },
                    {
                        "ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
                        "dependsOn": [],
                    },
                ],
            },
        }],
    "policy": {
        "name": "synthetic-supplier-intake",
        "version": "1.0.0",
        "requireDocumentProvenance": True,
        "requiredComponentFields": [
            "name",
            "version",
        ],
        "deniedLicenses": ["GPL-3.0-only"],
        "allowedLicenses": [],
        "unknownLicenseBehavior": "DENY",
        "deniedPurls": [],
        "requireRelationshipIntegrity": True,
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ceddl/sbom-policy-evidence-gate").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 '{
  "items": [
    {
      "id": "synthetic-supplier-pass",
      "sbom": {
        "bomFormat": "CycloneDX",
        "specVersion": "1.6",
        "serialNumber": "urn:uuid:11111111-2222-4333-8444-555555555555",
        "version": 1,
        "metadata": {
          "timestamp": "2026-09-17T12:00:00Z",
          "tools": [
            {
              "vendor": "Example Invalid Labs",
              "name": "Synthetic SBOM Builder",
              "version": "1.0.0"
            }
          ],
          "component": {
            "type": "application",
            "bom-ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
            "name": "supplier-app",
            "version": "1.0.0",
            "purl": "pkg:generic/example.invalid/supplier-app@1.0.0"
          }
        },
        "components": [
          {
            "type": "library",
            "bom-ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
            "name": "clear-widget",
            "version": "2.1.0",
            "purl": "pkg:generic/example.invalid/clear-widget@2.1.0",
            "licenses": [
              {
                "license": {
                  "id": "MIT"
                }
              }
            ]
          }
        ],
        "dependencies": [
          {
            "ref": "pkg:generic/example.invalid/supplier-app@1.0.0",
            "dependsOn": [
              "pkg:generic/example.invalid/clear-widget@2.1.0"
            ]
          },
          {
            "ref": "pkg:generic/example.invalid/clear-widget@2.1.0",
            "dependsOn": []
          }
        ]
      }
    }
  ],
  "policy": {
    "name": "synthetic-supplier-intake",
    "version": "1.0.0",
    "requireDocumentProvenance": true,
    "requiredComponentFields": [
      "name",
      "version"
    ],
    "deniedLicenses": [
      "GPL-3.0-only"
    ],
    "allowedLicenses": [],
    "unknownLicenseBehavior": "DENY",
    "deniedPurls": [],
    "requireRelationshipIntegrity": true
  }
}' |
apify call ceddl/sbom-policy-evidence-gate --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ceddl/sbom-policy-evidence-gate"
        }
    }
}
```

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/4adxYisIbAfKV2tTA/builds/EJaeI7cK7wvNK3zsH/openapi.json
