Trigger ingestion and analysis of a specific open source package version via an Endor Labs OSS dependency request. Use when the user says "trigger OSS dependency request", "request ingestion of <pkg>", "ingest this package", "add this OSS version to Endor", or wants Endor Labs to analyze a package version that isn't yet in the platform. Do NOT use for scanning local code (/endor-scan) or checking an already-ingested package (/endor-check).
Trigger ingestion and analysis of a specific OSS package version so Endor Labs
can analyze it. Backed by POST /v1/namespaces/{ns}/oss-dependency-requests.
Extract from user input:
org.apache.velocity:velocity@1.6.4-atlassian-39, lodash@4.17.21ENDOR_NAMESPACE if set, otherwise ask| Ecosystem | Verified PURL scheme | Example |
|---|---|---|
| Maven | mvn:// | mvn://org.apache.velocity:velocity@1.6.4-atlassian-39 |
For ecosystems not listed, ask the user for the exact PURL format — do not invent a scheme.
The request requires source_repository_http_clone_url. Try to discover it
before asking the user.
Maven: fetch the POM and read the <scm> block.
https://repo1.maven.org/maven2/{group-slashes}/{artifact}/{version}/{artifact}-{version}.pom*-atlassian-* versions): https://maven.artifacts.atlassian.com/{group-slashes}/{artifact}/{version}/{artifact}-{version}.pomExtract <scm>/<url> or <scm>/<connection>. Normalize:
scm:git: / scm:git:ssh:// prefixesgit@github.com:org/repo.git → https://github.com/org/repo.git.git if missingIf discovery fails, ask the user for the clone URL.
platform_source from the URL host| Host | platform_source |
|---|---|
github.com | PLATFORM_SOURCE_GITHUB |
bitbucket.org | PLATFORM_SOURCE_BITBUCKET |
gitlab.com | PLATFORM_SOURCE_GITLAB |
| other | Ask the user |
Show the full payload and ask for confirmation. This creates a resource in the namespace and triggers ingestion.
npx -y endorctl api create -r OSSDependencyRequest -n <namespace> -d '{
"meta": {"name": "trigger <pkg>@<version>"},
"spec": {
"dependencies": [{
"name": "<purl>",
"public": true,
"platform_source": "<PLATFORM_SOURCE_*>",
"source_repository_http_clone_url": "<clone-url>"
}]
}
}'Gotchas:
OSSDependencyRequest (all caps OSS). OssDependencyRequest fails with invalid resource.create is supported. list returns list operation not implemented for resource: OSSDependencyRequest; get likewise.Show the returned JSON (package PURL, namespace). Ingestion runs
asynchronously. Once analyzed, the package becomes queryable via
/endor-check and /endor-score.
| Error | Action |
|---|---|
invalid resource: OssDependencyRequest | Use OSSDependencyRequest (all caps) |
list operation not implemented | Only create is supported for this resource |
Invalid platform_source enum | Only GITHUB, BITBUCKET, GITLAB are known to work |
| Permission denied | User lacks write permission in the namespace |
| Auth error | Suggest /endor-setup |
endorlabs/skills-ideas
b958adc
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.