From e0927e998cc019ed8dd0e82076f1c15e4d7684d8 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Date: Fri, 4 Jul 2025 14:16:59 +0200 Subject: [PATCH] validate contract Signed-off-by: Miguel Martinez --- app/controlplane/internal/service/attestation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controlplane/internal/service/attestation.go b/app/controlplane/internal/service/attestation.go index 04037840b..50c9e9f9d 100644 --- a/app/controlplane/internal/service/attestation.go +++ b/app/controlplane/internal/service/attestation.go @@ -707,7 +707,7 @@ func (s *AttestationService) FindOrCreateWorkflow(ctx context.Context, req *cpAP return nil, handleUseCaseErr(err, s.log) } // Check if the contract name the user wants to use is the same as the one in the workflow - } else if req.GetContractName() != wf.ContractName { + } else if req.GetContractName() != "" && req.GetContractName() != wf.ContractName { return nil, errors.BadRequest("bad request", "you can't change to another contract during the attestation process, please update the workflow") }