/repos/{owner}/{repo}/dependency-graph/snapshotsCreate a dependency snapshot for a repository
Creates a dependency snapshot for a repository, recording the dependencies detected at a specific commit and ref. Supply the required detector, version, ref, sha, job, and scanned fields; ref must begin with refs/, and sha must be 40–64 characters. Add manifests and up to eight scalar-valued metadata entries when you need to include dependency details or domain-specific information.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Dependency snapshot submission details. Include detector, version, ref, sha, job, and scanned.
detector, version, ref, sha, job, and scanned are required; job must include id and correlator, and detector must include name, version, and url. sha must be 40–64 characters, ref must begin with refs/, and scanned must be an ISO 8601 date-time; metadata supports at most eight scalar-valued keys.