forked from tektoncd/chains
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record
invocation.configSource
section in slsa provenance
Related to tektoncd#521 and tektoncd/pipeline#5397 Prior to this PR, `invocation.configSource` section in slsa provenance was missing. In this change, we want to record the configSource information for the remote resources i.e. git, bundle, catalog. Signed-off-by: Chuang Wang <[email protected]>
- Loading branch information
Showing
2 changed files
with
101 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,96 @@ | ||
{ | ||
"metadata": { | ||
"name": "git-clone", | ||
"labels": { | ||
"tekton.dev/pipelineTask": "git-clone" | ||
} | ||
}, | ||
"spec": { | ||
"params": [ | ||
{ | ||
"name": "url", | ||
"value": "https://git.test.com" | ||
}, | ||
{ | ||
"name": "revision", | ||
"value": "" | ||
} | ||
], | ||
"taskRef": { | ||
"name": "git-clone", | ||
"kind": "Task" | ||
}, | ||
"serviceAccountName": "default" | ||
}, | ||
"status": { | ||
"startTime": "2021-03-29T09:50:00Z", | ||
"completionTime": "2021-03-29T09:50:15Z", | ||
"conditions": [ | ||
{ | ||
"type": "Succeeded", | ||
"status": "True", | ||
"lastTransitionTime": "2021-03-29T09:50:15Z", | ||
"reason": "Succeeded", | ||
"message": "All Steps have completed executing" | ||
} | ||
], | ||
"podName": "test-pod-name", | ||
"steps": [ | ||
{ | ||
"name": "step1", | ||
"container": "step-step1", | ||
"imageID": "docker-pullable://gcr.io/test1/test1@sha256:d4b63d3e24d6eef04a6dc0795cf8a73470688803d97c52cffa3c8d4efd3397b6" | ||
} | ||
], | ||
"taskResults": [ | ||
{ | ||
"name": "some-uri_DIGEST", | ||
"value": "sha256:d4b63d3e24d6eef04a6dc0795cf8a73470688803d97c52cffa3c8d4efd3397b6" | ||
}, | ||
{ | ||
"name": "some-uri", | ||
"value": "pkg:deb/debian/[email protected]" | ||
} | ||
], | ||
"taskSpec": { | ||
"steps": [ | ||
{ | ||
"env": [ | ||
{ | ||
"name": "HOME", | ||
"value": "$(params.userHome)" | ||
}, | ||
{ | ||
"name": "PARAM_URL", | ||
"value": "$(params.url)" | ||
} | ||
], | ||
"name": "step1", | ||
"script": "git clone" | ||
} | ||
], | ||
"params": [ | ||
{ | ||
"name": "CHAINS-GIT_COMMIT", | ||
"type": "string", | ||
"default": "sha:taskdefault" | ||
}, | ||
{ | ||
"name": "CHAINS-GIT_URL", | ||
"type": "string", | ||
"default": "https://git.test.com" | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"name": "some-uri_DIGEST", | ||
"description": "Digest of a file to push." | ||
}, | ||
{ | ||
"name": "some-uri", | ||
"description": "some calculated uri" | ||
} | ||
] | ||
} | ||
} | ||
"metadata": { | ||
"name": "git-clone", | ||
"labels": { | ||
"tekton.dev/pipelineTask": "git-clone" | ||
} | ||
}, | ||
"spec": { | ||
"params": [ | ||
{ | ||
"name": "url", | ||
"value": "https://git.test.com" | ||
}, | ||
{ | ||
"name": "revision", | ||
"value": "" | ||
} | ||
], | ||
"taskRef": { | ||
"name": "git-clone", | ||
"kind": "Task" | ||
}, | ||
"serviceAccountName": "default" | ||
}, | ||
"status": { | ||
"startTime": "2021-03-29T09:50:00Z", | ||
"completionTime": "2021-03-29T09:50:15Z", | ||
"conditions": [ | ||
{ | ||
"type": "Succeeded", | ||
"status": "True", | ||
"lastTransitionTime": "2021-03-29T09:50:15Z", | ||
"reason": "Succeeded", | ||
"message": "All Steps have completed executing" | ||
} | ||
], | ||
"podName": "test-pod-name", | ||
"steps": [ | ||
{ | ||
"name": "step1", | ||
"container": "step-step1", | ||
"imageID": "docker-pullable://gcr.io/test1/test1@sha256:d4b63d3e24d6eef04a6dc0795cf8a73470688803d97c52cffa3c8d4efd3397b6" | ||
} | ||
], | ||
"taskResults": [ | ||
{ | ||
"name": "some-uri_DIGEST", | ||
"value": "sha256:d4b63d3e24d6eef04a6dc0795cf8a73470688803d97c52cffa3c8d4efd3397b6" | ||
}, | ||
{ | ||
"name": "some-uri", | ||
"value": "pkg:deb/debian/[email protected]" | ||
} | ||
], | ||
"taskSpec": { | ||
"steps": [ | ||
{ | ||
"env": [ | ||
{ | ||
"name": "HOME", | ||
"value": "$(params.userHome)" | ||
}, | ||
{ | ||
"name": "PARAM_URL", | ||
"value": "$(params.url)" | ||
} | ||
], | ||
"name": "step1", | ||
"script": "git clone" | ||
} | ||
], | ||
"params": [ | ||
{ | ||
"name": "CHAINS-GIT_COMMIT", | ||
"type": "string", | ||
"default": "sha:taskdefault" | ||
}, | ||
{ | ||
"name": "CHAINS-GIT_URL", | ||
"type": "string", | ||
"default": "https://git.test.com" | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"name": "some-uri_DIGEST", | ||
"description": "Digest of a file to push." | ||
}, | ||
{ | ||
"name": "some-uri", | ||
"description": "some calculated uri" | ||
} | ||
] | ||
} | ||
} | ||
} |