{
  "openapi": "3.0.1",
  "info": {
    "title": "Dependency Vulnerability Scanner — Lockfile CVE Check",
    "description": "Enterprise-grade dependency vulnerability scanning via Google OSV.dev. 14 manifest formats across 9 ecosystems with CVE aliases, CVSS v3 severity, fix versions, CISA KEV flagging, CI gate mode, and SBOM export. Per-success charging. Ideal for CI security gates.",
    "version": "1.0",
    "x-build-id": "sbSurJF6g8xcLJnVV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/perryay~dependency-vulnerability-scanner/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-perryay-dependency-vulnerability-scanner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/perryay~dependency-vulnerability-scanner/runs": {
      "post": {
        "operationId": "runs-sync-perryay-dependency-vulnerability-scanner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/perryay~dependency-vulnerability-scanner/run-sync": {
      "post": {
        "operationId": "run-sync-perryay-dependency-vulnerability-scanner",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "single-manifest",
              "batch-manifests",
              "package-query"
            ],
            "type": "string",
            "description": "single-manifest scans one inline manifest; batch-manifests scans many manifests inline or fetched from URLs; package-query checks a list of (ecosystem, name, version) tuples directly against OSV.",
            "default": "single-manifest"
          },
          "manifest_filename": {
            "title": "Manifest filename",
            "type": "string",
            "description": "Filename of the manifest in single-manifest mode. The extension drives format detection (package-lock.json, yarn.lock, pnpm-lock.yaml, requirements.txt, Pipfile, poetry.lock, pubspec.lock, Cargo.lock, go.mod, pom.xml, build.gradle, composer.lock, Gemfile.lock, mix.lock).",
            "default": "requirements.txt"
          },
          "manifest_content": {
            "title": "Manifest content",
            "type": "string",
            "description": "Full text content of the manifest file in single-manifest mode.",
            "default": ""
          },
          "manifest_urls": {
            "title": "Manifest URLs",
            "type": "array",
            "description": "batch-manifests mode: URLs of manifest files to download and scan (max 5 MB each). Fetch failures are reported per-URL as manifest_error rows and never charged.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "manifests": {
            "title": "Inline manifests",
            "type": "array",
            "description": "batch-manifests mode: inline manifest objects, each with a filename (drives format detection) and content.",
            "items": {
              "type": "object",
              "properties": {
                "filename": {
                  "type": "string",
                  "title": "Filename",
                  "editor": "textfield",
                  "description": "Filename"
                },
                "content": {
                  "type": "string",
                  "title": "Content",
                  "editor": "textarea",
                  "description": "Content"
                }
              }
            },
            "default": []
          },
          "ecosystem": {
            "title": "Ecosystem override",
            "enum": [
              "auto",
              "npm",
              "PyPI",
              "golang",
              "cargo",
              "maven",
              "Composer",
              "rubygems",
              "pub",
              "hex"
            ],
            "type": "string",
            "description": "package-query mode only: ecosystem applied to packages that do not carry their own. In manifest modes the ecosystem is always derived from the file format.",
            "default": "auto"
          },
          "packages": {
            "title": "Packages",
            "type": "array",
            "description": "package-query mode: packages to check. Each entry needs name, version (optional), and ecosystem (or set the top-level ecosystem override).",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "title": "Package name",
                  "editor": "textfield",
                  "description": "Package name"
                },
                "version": {
                  "type": "string",
                  "title": "Installed version",
                  "editor": "textfield",
                  "description": "Installed version"
                },
                "ecosystem": {
                  "type": "string",
                  "enum": [
                    "npm",
                    "PyPI",
                    "golang",
                    "cargo",
                    "maven",
                    "Composer",
                    "rubygems",
                    "pub",
                    "hex"
                  ],
                  "title": "Ecosystem",
                  "editor": "select",
                  "description": "Ecosystem"
                }
              }
            },
            "default": []
          },
          "check_kev": {
            "title": "Check CISA KEV",
            "type": "boolean",
            "description": "Fetch the CISA Known Exploited Vulnerabilities catalog once per run and flag findings whose CVE aliases appear in it (kev=true on the finding row).",
            "default": true
          },
          "max_vulns_per_package": {
            "title": "Max vulns per package",
            "type": "number",
            "description": "Maximum finding rows emitted per package per source manifest (1-100). Prevents one heavily-vulnerable dependency from flooding the dataset.",
            "default": 10
          },
          "fail_on_critical": {
            "title": "Fail on critical",
            "type": "boolean",
            "description": "If true, the run exits with a failure status after pushing all rows when any CRITICAL finding exists. All rows are still pushed before the failure.",
            "default": false
          },
          "export_sbom": {
            "title": "Export SBOM",
            "type": "boolean",
            "description": "Emit an sbom dataset row listing every scanned package with its source manifest, ecosystem, and version.",
            "default": false
          },
          "ci_format": {
            "title": "CI report",
            "type": "boolean",
            "description": "Emit a ci dataset row with pass=false when any CRITICAL finding exists (gate=critical), for pipeline consumption.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}