Skip to content

Add labels and annotations to attestation#692

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
lcarva:labels-annotations
Feb 3, 2023
Merged

Add labels and annotations to attestation#692
tekton-robot merged 1 commit into
tektoncd:mainfrom
lcarva:labels-annotations

Conversation

@lcarva

@lcarva lcarva commented Jan 26, 2023

Copy link
Copy Markdown
Contributor

Fixes #591

Changes

Labels and annotations are added to the PipelineRun and TaskRun attestations in .predicate.invocation.environment. Additionally, for PipelineRun attestations, each task also contains its own .invocation.environment with the corresponding labels and annotations.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

- Annotations and labels are included in the attestation.

@tekton-robot tekton-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 26, 2023
@lcarva lcarva force-pushed the labels-annotations branch from d33b669 to 6186e23 Compare January 26, 2023 18:39
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 26, 2023
@tekton-robot

Copy link
Copy Markdown

The following is the coverage report on the affected files.
Say /test pull-tekton-chains-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/chains/objects/objects.go 40.5% 38.6% -1.8

@lcarva lcarva force-pushed the labels-annotations branch 2 times, most recently from 2e37b9b to bdf5af3 Compare January 26, 2023 20:06
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 26, 2023
Comment thread test/testdata/intoto/pipeline-output-image.json Outdated

@chitrangpatel chitrangpatel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit to double check.

@wlynch wlynch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM! Just some minor comments.

Comment thread test/testdata/intoto/pipeline-output-image.json Outdated
Comment thread pkg/chains/formats/slsa/attest/attest.go
@lcarva lcarva force-pushed the labels-annotations branch 3 times, most recently from af49193 to 71151a2 Compare January 27, 2023 17:32
Labels and annotations are added to the PipelineRun and TaskRun
attestations in `.predicate.invocation.environment`. Additionally, for
PipelineRun attestations, each task also contains its own
`.invocation.environment` with the corresponding labels and annotations.

Fixes tektoncd#591

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
@lcarva lcarva force-pushed the labels-annotations branch from 71151a2 to 72827c1 Compare January 28, 2023 03:57

@wlynch wlynch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2023
@tekton-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chitrangpatel, wlynch

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2023
@lcarva

lcarva commented Feb 3, 2023

Copy link
Copy Markdown
Contributor Author

/test pull-tekton-chains-integration-tests

@tekton-robot tekton-robot merged commit 82c213c into tektoncd:main Feb 3, 2023
@lcarva lcarva deleted the labels-annotations branch February 3, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide TaskRun annotations in SLSA provenance

4 participants