curl --location --request POST 'https://api.github.com/repos///dependency-graph/snapshots' \
--header 'Content-Type: application/json' \
--data-raw '{
"detector": {
"name": "docker buildtime detector",
"url": "http://example.com/docker-buildtimer-detector",
"version": "1.0.0"
},
"job": {
"correlator": "yourworkflowname_yourjobname",
"html_url": "http://example.com/build",
"id": "5622a2b0-63f6-4732-8c34-a1ab27e102a11"
},
"manifests": {
"property1": {
"file": {
"source_location": "/src/build/package-lock.json"
},
"metadata": {
"property1": "string",
"property2": "string"
},
"name": "package-lock.json",
"resolved": {
"property1": {
"dependencies": "@actions/http-client",
"metadata": {
"property1": "string",
"property2": "string"
},
"package_url": "pkg:/npm/%40actions/http-client@1.0.11",
"relationship": "direct",
"scope": "runtime"
},
"property2": {
"dependencies": "@actions/http-client",
"metadata": {
"property1": "string",
"property2": "string"
},
"package_url": "pkg:/npm/%40actions/http-client@1.0.11",
"relationship": "direct",
"scope": "runtime"
}
}
},
"property2": {
"file": {
"source_location": "/src/build/package-lock.json"
},
"metadata": {
"property1": "string",
"property2": "string"
},
"name": "package-lock.json",
"resolved": {
"property1": {
"dependencies": "@actions/http-client",
"metadata": {
"property1": "string",
"property2": "string"
},
"package_url": "pkg:/npm/%40actions/http-client@1.0.11",
"relationship": "direct",
"scope": "runtime"
},
"property2": {
"dependencies": "@actions/http-client",
"metadata": {
"property1": "string",
"property2": "string"
},
"package_url": "pkg:/npm/%40actions/http-client@1.0.11",
"relationship": "direct",
"scope": "runtime"
}
}
}
},
"metadata": {
"property1": "string",
"property2": "string"
},
"ref": "refs/heads/main",
"scanned": "2020-06-13T19:52:50.000Z",
"sha": "ddc951f4b1293222421f2c8df679786153acf689",
"version": 0
}'