# Block an SPDX release on a denied license

**Use case:** 

Evaluate a synthetic SPDX 2.3 release SBOM and retain deterministic FAIL evidence when GPL-3.0-only violates the release policy.

## Input

```json
{
  "items": [
    {
      "id": "synthetic-spdx-denied-license",
      "sbom": {
        "spdxVersion": "SPDX-2.3",
        "SPDXID": "SPDXRef-DOCUMENT",
        "name": "synthetic-release-sbom",
        "documentNamespace": "https://example.invalid/spdx/synthetic-release-1.0.0",
        "creationInfo": {
          "created": "2026-09-18T12:00:00Z",
          "creators": [
            "Tool: Example Invalid SPDX Builder-1.0.0"
          ]
        },
        "packages": [
          {
            "SPDXID": "SPDXRef-Package-release-library",
            "name": "release-library",
            "versionInfo": "3.0.0",
            "licenseConcluded": "GPL-3.0-only",
            "licenseDeclared": "MIT",
            "externalRefs": [
              {
                "referenceCategory": "PACKAGE-MANAGER",
                "referenceType": "purl",
                "referenceLocator": "pkg:generic/example.invalid/release-library@3.0.0"
              }
            ]
          }
        ],
        "relationships": [
          {
            "spdxElementId": "SPDXRef-DOCUMENT",
            "relationshipType": "DESCRIBES",
            "relatedSpdxElement": "SPDXRef-Package-release-library"
          }
        ]
      }
    }
  ],
  "policy": {
    "name": "synthetic-release-license-gate",
    "version": "1.0.0",
    "requireDocumentProvenance": true,
    "requiredComponentFields": [
      "name",
      "version",
      "purl"
    ],
    "deniedLicenses": [
      "GPL-3.0-only"
    ],
    "allowedLicenses": [],
    "unknownLicenseBehavior": "DENY",
    "deniedPurls": [],
    "requireRelationshipIntegrity": true
  },
  "maxSbomBytes": 2000000,
  "maxComponents": 5000,
  "maxRelationships": 10000,
  "maxFindings": 1000
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type",
    "format": "string"
  },
  "sbomId": {
    "label": "Sbom id",
    "format": "string"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "specVersion": {
    "label": "Spec version",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "componentCount": {
    "label": "Component count",
    "format": "integer"
  },
  "relationshipCount": {
    "label": "Relationship count",
    "format": "integer"
  },
  "findingCount": {
    "label": "Finding count",
    "format": "integer"
  },
  "findingCode": {
    "label": "Finding code",
    "format": "string"
  },
  "severity": {
    "label": "Severity",
    "format": "string"
  },
  "componentId": {
    "label": "Component id",
    "format": "string"
  },
  "path": {
    "label": "Path",
    "format": "string"
  },
  "message": {
    "label": "Message",
    "format": "string"
  },
  "fingerprint": {
    "label": "Fingerprint",
    "format": "string"
  },
  "errorCode": {
    "label": "Error code",
    "format": "string"
  },
  "policyName": {
    "label": "Policy name",
    "format": "string"
  },
  "policyVersion": {
    "label": "Policy version",
    "format": "string"
  },
  "policyHash": {
    "label": "Policy hash",
    "format": "string"
  },
  "inputHash": {
    "label": "Input hash",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [SBOM Policy Evidence Gate](https://apify.com/ceddl/sbom-policy-evidence-gate.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ceddl/sbom-policy-evidence-gate.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ceddl/sbom-policy-evidence-gate.md

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`).
