dependency-graph
Create a snapshot of dependencies for a repository
Create a new snapshot of a repository's dependencies. You must authenticate using an access token with the repo scope to use this endpoint for a repository that the requesting user has access to.
post/repos/{owner}/{repo}/dependency-graph/snapshots
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
Request body
Example request
{
"job": {
"id": "5622a2b0-63f6-4732-8c34-a1ab27e102a11",
"correlator": "yourworkflowname_yourjobname",
"html_url": "http://example.com/build"
},
"sha": "ddc951f4b1293222421f2c8df679786153acf689",
"ref": "refs/heads/main",
"detector": {
"name": "docker buildtime detector",
"version": "1.0.0",
"url": "http://example.com/docker-buildtimer-detector"
},
"scanned": "2020-06-13T14:52:50-05:00"
}Response
Response