You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PipelineRuns with v2alpha4 to process StepActions (tektoncd#1118)
* Add new v2alpha4 version for PipelineRuns
This new version will now process the information from any associated StepAction from the executed PipelineRun when `artifacts.pipelinerun.enable-deep-inspection` is set to `true`.
Also, the way chains read results from PipelineRuns to populate the `subjects` field is changing: now the user has to explicitly mark a result as a subject using an object type-hinted tag (*ARTIFACT_OUTPUTS) + the new `isBuildArtifact` property in the value.
Refactors to share logic between v2alph3 and v2alpha4.
* Fix issue when reading *IMAGE_URL / *IMAGE_DIGEST type hint results when two or more tasks/steps are using the same prefix.
|`artifacts.pipelinerun.format`| The format to store `PipelineRun` payloads in. |`in-toto`, `slsa/v1`, `slsa/v2alpha3`|`in-toto`|
38
+
|`artifacts.pipelinerun.format`| The format to store `PipelineRun` payloads in. |`in-toto`, `slsa/v1`, `slsa/v2alpha3`, `slsa/v2alpha4`|`in-toto`|
39
39
|`artifacts.pipelinerun.storage`| The storage backend to store `PipelineRun` signatures in. Multiple backends can be specified with comma-separated list ("tekton,oci"). To disable the `PipelineRun` artifact input an empty string (""). |`tekton`, `oci`, `gcs`, `docdb`, `grafeas`|`tekton`|
40
40
|`artifacts.pipelinerun.signer`| The signature backend to sign `PipelineRun` payloads with. |`x509`, `kms`|`x509`|
41
41
|`artifacts.pipelinerun.enable-deep-inspection`| This boolean option will configure whether Chains should inspect child taskruns in order to capture inputs/outputs within a pipelinerun. `"false"` means that Chains only checks pipeline level results, whereas `"true"` means Chains inspects both pipeline level and task level results. |`"true"`, `"false"`|`"false"`|
@@ -45,6 +45,7 @@ Supported keys include:
45
45
> - For grafeas storage backend, currently we only support Container Analysis. We will make grafeas server address configurabe within a short time.
46
46
> -`slsa/v1` is an alias of `in-toto` for backwards compatibility.
47
47
> -`slsa/v2alpha3` corresponds to the slsav1.0 spec. and uses latest [`v1` Tekton Objects](https://tekton.dev/docs/pipelines/pipeline-api/#tekton.dev/v1). Recommended format for new chains users who want the slsav1.0 spec.
48
+
> -`slsa/v2alpha4` corresponds to the slsav1.0 spec. and uses latest [`v1` Tekton Objects](https://tekton.dev/docs/pipelines/pipeline-api/#tekton.dev/v1). It reads type-hinted results from [StepActions](https://tekton.dev/docs/pipelines/pipeline-api/#tekton.dev/v1alpha1.StepAction) when `artifacts.pipelinerun.enable-deep-inspection` is set to `true`. Recommended format for new chains users who want the slsav1.0 spec.
Copy file name to clipboardExpand all lines: docs/slsa-provenance.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -373,7 +373,7 @@ spec:
373
373
374
374
`second-ARTIFACT_OUTPUTS`, `third-IMAGE_URL`/`third-IMAGE_DIGEST`, and `IMAGES` will be considered as `subject`. `first-ARTIFACT_OUTPUTS` doesn't specify `isBuildArtifact: true` so it is not count as `subject`.
375
375
376
-
Chains'`v2alpha4` formatter now automatically reads type-hinted results from StepActions associated to the executed TaskRun; users no longer need to manually surface these results from the StepActions when the appropriate type hints are in place. For instance, with the following TaskRun:
376
+
Chains'`v2alpha4` formatter now automatically reads type-hinted results from StepActions associated to the executed TaskRun/PipelineRun; users no longer need to manually surface these results from the StepActions when the appropriate type hints are in place. PipelineRuns require `artifacts.pipelinerun.enable-deep-inspection: true`for this functionality to work. For instance, with the following TaskRun:
@@ -62,6 +63,46 @@ func GetTaskRunBuildDefinition(ctx context.Context, tro *objects.TaskRunObjectV1
62
63
}, nil
63
64
}
64
65
66
+
// GetPipelineRunBuildDefinition returns the buildDefinition for the given PipelineRun based on the configured buildType. This will default to the slsa buildType
0 commit comments