Issue 642: predicate.materials needs to record more information in TaskRun#649
Conversation
|
/kind bug |
|
The following is the coverage report on the affected files.
|
5871209 to
40955d1
Compare
|
The following is the coverage report on the affected files.
|
|
The following is the coverage report on the affected files.
|
67d312e to
1e0a3c3
Compare
|
The following is the coverage report on the affected files.
|
1e0a3c3 to
8cd6294
Compare
|
The following is the coverage report on the affected files.
|
8cd6294 to
645f946
Compare
|
The following is the coverage report on the affected files.
|
645f946 to
b123506
Compare
|
The following is the coverage report on the affected files.
|
|
/retest |
b123506 to
fa40296
Compare
|
The following is the coverage report on the affected files.
|
fa40296 to
fbf249e
Compare
|
The following is the coverage report on the affected files.
|
fbf249e to
96220a2
Compare
|
The following is the coverage report on the affected files.
|
|
/retest |
96220a2 to
8d0d9e9
Compare
|
The following is the coverage report on the affected files.
|
8d0d9e9 to
cf79e26
Compare
|
The following is the coverage report on the affected files.
|
cf79e26 to
a3b75a9
Compare
|
The following is the coverage report on the affected files.
|
a3b75a9 to
3c06a56
Compare
|
The following is the coverage report on the affected files.
|
3c06a56 to
da5d864
Compare
|
The following is the coverage report on the affected files.
|
da5d864 to
f8c9604
Compare
This PR addressed issue tektoncd#642 by adding step and sidecar image uri and digest information to `predicate.materials` for a `TaskRun`. A follow-up PR will be created to address materials for `PipelineRun`.
f8c9604 to
d326d90
Compare
|
The following is the coverage report on the affected files.
|
| func AddStepImagesToMaterials(steps []v1beta1.StepState, mats *[]slsa.ProvenanceMaterial) error { | ||
| for _, stepState := range steps { | ||
| if err := AddImageIDToMaterials(stepState.ImageID, mats); err != nil { | ||
| return err | ||
| } | ||
| } | ||
| return nil | ||
| } | ||
|
|
||
| // AddSidecarImagesToMaterials adds sidecar images to predicate.materials | ||
| func AddSidecarImagesToMaterials(sidecars []v1beta1.SidecarState, mats *[]slsa.ProvenanceMaterial) error { | ||
| for _, sidecarState := range sidecars { | ||
| if err := AddImageIDToMaterials(sidecarState.ImageID, mats); err != nil { | ||
| return err | ||
| } | ||
| } | ||
| return nil | ||
| } | ||
|
|
||
| // AddImageIDToMaterials converts an imageId with format <uri>@sha256:<digest> and then adds it to a provenance materials. | ||
| func AddImageIDToMaterials(imageID string, mats *[]slsa.ProvenanceMaterial) error { |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wlynch The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR addresses issue #642 by adding
stepsandsidecarsimage uri and digest information topredicate.materialsfor aTaskRun. Predicate.materials forPipelineRunare addressed in #658.Changes
materialswas pulled out fromtaskrun.gointo its own module likebuildconfig.go:material.goimageIDofstepsandsidecarsoftaskrunobject.Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
Release Notes