Chains creates attestation for non-successful TaskRuns

Đang mở
#484 11 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@infernus01 đang làm issue này rồi.

Từ ngày 20/1/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

kind/bug

Expected Behavior

The Tekton Chains controller should only create TaskRun attestations if the TaskRun succeeds.

Actual Behavior

The controller creates TaskRun attestations regardless of the final state of the TaskRun.

Steps to Reproduce the Problem

It's easier to verify this behavior when the transparency log is enabled. The steps below assume this has been done.

  1. Create a task, for example git-clone from the catalog:
curl 'https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.7/git-clone.yaml' | kubectl create -f -
  1. Create a taskrun from the task. Provide incorrect parameter values to cause it to fail. For example provide a revision value that does not exist:
tkn task start git-clone --param url=https://github.com/tektoncd/chains --param revision=yolo --use-param-defaults --workspace name=output,emptyDir= --showlog
  1. Verify the taskrun fails
  2. Verify an attestation for the taskrun was created by verifying the taskrun contains a valid value for the annotation "chains.tekton.dev/transparency". This should not happen.

Additional Info

  • Kubernetes version:
$ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.24.2
Kustomize Version: v4.5.4
Server Version: v1.23.5+3afdacb
  • Tekton Pipeline version:
$ tkn version
Client version: 0.21.0
Pipeline version: v0.33.2
Triggers version: v0.19.0
Ngôn ngữ chính
Go
Star
279
Fork
171
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tektoncd/chains

Tất cả issue của tektoncd/chains

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.