Skip to content

Instantly share code, notes, and snippets.

@judavi
Last active March 19, 2020 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judavi/af9f2cef63c772039127aa85c331374e to your computer and use it in GitHub Desktop.
Save judavi/af9f2cef63c772039127aa85c331374e to your computer and use it in GitHub Desktop.
Build Occurrence Grafeas
{
"name": "projects/my-project/occurrences/randomID",
"noteName": "providers/verified-builder/notes/buildID",
"createTime": "2017-06-15T15:28:40.142107Z",
"updateTime": "2017-06-15T15:28:40.142107Z",
"kind": "BUILD",
"resourceUrl": {
"uri": "https://myregistry/image@sha256:hash",
},
"build": {
"buildDetails": {
"provenance": {
"id": "buildID",
"projectId": "myproject",
"commands": [
{ "snip": "sorry" }
],
"builtArtifacts": [
{
"checksum": "sha256:hash",
"id": "myregistry/image@sha256:hash",
"names": [
"myregistry/image",
"myregistry/image:latest"
]
}
],
"createTime": "2017-06-15T15:27:36.671076708Z",
"startTime": "2017-06-15T15:27:37.317967408Z",
"endTime": "2017-06-15T15:27:37.317967408Z",
"creator": "person@example.com",
"logsUri": "logbucketname",
"builderVersion": "12345678",
"finishTime": "2017-06-15T15:28:38.986031Z",
"sourceProvenance": {
"artifactStorageSourceUri": "",
"fileHashes": {
"gs://mysourcebucket/source/1234567890.9.tgz#1234567890": {
"fileHash": [
{
"value": "k28gZoKZDeKr4Dm_Xg9HiQ=="
}
]
}
},
"context": {
"labels": {
"string": "string"
},
"git": {
"url": "string",
"revisionId": "string"
}
}
}
},
"provenanceBytes": "base64_blob_of_build_details=="
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment