When calculating the subjects for a statement, using v2alpha4, artifacts that are repeated should appear only once in the list.
Actual Behavior
If a step-result generates an artifact, and the same artifact is generated in another step/task, or referenced in the pipelinerun results, the artifact is repeated in the list of subjects.
Steps to Reproduce the Problem
Run the following PipelineRun with Chains configured to use v2alpha4 and deep-inspection for pipelineruns:
Expected Behavior
When calculating the subjects for a statement, using v2alpha4, artifacts that are repeated should appear only once in the list.
Actual Behavior
If a step-result generates an artifact, and the same artifact is generated in another step/task, or referenced in the pipelinerun results, the artifact is repeated in the list of subjects.
Steps to Reproduce the Problem
Run the following PipelineRun with Chains configured to use v2alpha4 and deep-inspection for pipelineruns:
After the attestation is generated the subjects look like this:
The same artifact is repeated.
Additional Info