diff --git a/.tekton/ec-cli-pull-request.yaml b/.tekton/ec-cli-pull-request.yaml index 272ac3e1c..9a5bfb819 100644 --- a/.tekton/ec-cli-pull-request.yaml +++ b/.tekton/ec-cli-pull-request.yaml @@ -7,8 +7,7 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "ec-release-debugging" + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && files.all.exists(x, x.matches('internal/')) creationTimestamp: null labels: appstudio.openshift.io/application: ec-release-debugging diff --git a/.tekton/verify-enterprise-contract-task-pull-request.yaml b/.tekton/verify-enterprise-contract-task-pull-request.yaml index 25fc1a982..872887e30 100644 --- a/.tekton/verify-enterprise-contract-task-pull-request.yaml +++ b/.tekton/verify-enterprise-contract-task-pull-request.yaml @@ -7,8 +7,7 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "ec-release-debugging" && files.all.exists(x, x.matches('tasks/verify-enterprise-contract/0.1/')) + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" creationTimestamp: null labels: appstudio.openshift.io/application: ec-release-debugging diff --git a/internal/applicationsnapshot/attestation.go b/internal/applicationsnapshot/attestation.go index 220e40958..e56252194 100644 --- a/internal/applicationsnapshot/attestation.go +++ b/internal/applicationsnapshot/attestation.go @@ -49,3 +49,7 @@ func (r *Report) attestations() ([]in_toto.Statement, error) { } return statements, nil } + +func toString() string { + return "attestation" +} diff --git a/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml b/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml index 3f1c6399a..f579b2abf 100644 --- a/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml +++ b/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml @@ -1,3 +1,4 @@ +--- # Copyright The Enterprise Contract Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,10 +12,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# +# comment # SPDX-License-Identifier: Apache-2.0 ---- apiVersion: tekton.dev/v1 kind: Task metadata: