-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix field names in generated json statement (#1129) To keep backwards compatibility with previous struct versions (e.g, github.com/in-toto/in-toto-golang/in_toto) we have to use protojson.Marshal function to transform the struct to its json representation so the tags defined in the intoto.Statement are follow and applied to the resulting string. (cherry picked from commit 3bf8cac) * Fix no repeated subjects for v2alpha4 pipelineruns (#1130) Change the pipelinerun v2alpha4 method that calculates the subjects to use `artifact.AppendSubjects` instead of `append` to avoid duplicated subjects. (cherry picked from commit badc734) * Calculate subjects per formatter (#1132) * Calculate subjects per formatter * Tests for new retrieve full uris in grafeas (cherry picked from commit 750a98e)
- Loading branch information
1 parent
9a67b0f
commit 4cb5c50
Showing
26 changed files
with
1,528 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
apiVersion: tekton.dev/v1 | ||
kind: PipelineRun | ||
metadata: | ||
name: pipeline-test-run | ||
spec: | ||
pipelineSpec: | ||
results: | ||
- name: output1-ARTIFACT_OUTPUTS | ||
value: $(tasks.t1.results.output1-ARTIFACT_OUTPUTS) | ||
- name: output2-ARTIFACT_OUTPUTS | ||
value: $(tasks.t1.results.output2) | ||
- name: output3-ARTIFACT_OUTPUTS | ||
value: $(tasks.t2.results.output3-ARTIFACT_OUTPUTS) | ||
tasks: | ||
- name: t1 | ||
taskSpec: | ||
results: | ||
- name: output1-ARTIFACT_OUTPUTS | ||
type: object | ||
properties: | ||
uri: {} | ||
digest: {} | ||
isBuildArtifact: {} | ||
|
||
- name: output2 | ||
type: object | ||
properties: | ||
uri: {} | ||
digest: {} | ||
|
||
steps: | ||
- name: step1 | ||
image: busybox:glibc | ||
script: | | ||
echo -n "Hello!" | ||
echo -n "{\"uri\":\"gcr.io/foo/img1\", \"digest\":\"sha256:586789aa031fafc7d78a5393cdc772e0b55107ea54bb8bcf3f2cdac6c6da51ee\", \"isBuildArtifact\": \"true\" }" > $(results.output1-ARTIFACT_OUTPUTS.path) | ||
echo -n "{\"uri\":\"gcr.io/foo/img2\", \"digest\":\"sha256:586789aa031fafc7d78a5393cdc772e0b55107ea54bb8bcf3f2cdac6c6da51ee\"}" > $(results.output2.path) | ||
- name: t2 | ||
taskSpec: | ||
results: | ||
- name: output3-ARTIFACT_OUTPUTS | ||
type: object | ||
properties: | ||
uri: {} | ||
digest: {} | ||
isBuildArtifact: {} | ||
steps: | ||
- name: step1 | ||
image: busybox:glibc | ||
script: | | ||
echo -n "Hello!" | ||
echo -n "{\"uri\":\"gcr.io/foo/img1\", \"digest\":\"sha256:586789aa031fafc7d78a5393cdc772e0b55107ea54bb8bcf3f2cdac6c6da51ee\", \"isBuildArtifact\": \"true\" }" > $(results.output3-ARTIFACT_OUTPUTS.path) | ||
- name: t3 | ||
taskSpec: | ||
results: | ||
- name: IMAGES | ||
type: string | ||
steps: | ||
- name: step1 | ||
image: busybox:glibc | ||
script: | | ||
echo -n "gcr.io/foo/img1@sha256:586789aa031fafc7d78a5393cdc772e0b55107ea54bb8bcf3f2cdac6c6da51ee" > $(results.IMAGES.path) |
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
Oops, something went wrong.