diff --git a/tests/build/build_templates.go b/tests/build/build_templates.go index f1c0ab0f4..b5189506e 100644 --- a/tests/build/build_templates.go +++ b/tests/build/build_templates.go @@ -285,6 +285,11 @@ var _ = framework.BuildSuiteDescribe("Build templates E2E test", Label("build", } Expect(kubeadminClient.TektonController.CreateOrUpdatePolicyConfiguration(testNamespace, policy)).To(Succeed()) + pipelineRun, err := kubeadminClient.HasController.GetComponentPipelineRun(componentNames[i], applicationName, testNamespace, "") + Expect(err).ToNot(HaveOccurred()) + + rev := pipelineRun.Annotations["pipelinesascode.tekton.dev/sha"] + generator := tekton.VerifyEnterpriseContract{ Snapshot: v1alpha1.SnapshotSpec{ Application: applicationName, @@ -295,7 +300,8 @@ var _ = framework.BuildSuiteDescribe("Build templates E2E test", Label("build", Source: v1alpha1.ComponentSource{ ComponentSourceUnion: v1alpha1.ComponentSourceUnion{ GitSource: &v1alpha1.GitSource{ - URL: gitUrl, + URL: gitUrl, + Revision: rev, }, }, },