Skip to content

Commit 69a6a2d

Browse files
committed
Don't show the secret content if we cannot create the secret
Fixes #1238
1 parent 3c2ab03 commit 69a6a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pipelineascode/pipelineascode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (p *PacRun) startPR(ctx context.Context, match matcher.Match) (*v1beta1.Pip
120120
}
121121

122122
if err = p.k8int.CreateSecret(ctx, match.Repo.GetNamespace(), authSecret); err != nil {
123-
return nil, fmt.Errorf("creating basic auth secret: %s has failed: %w ", gitAuthSecretName, err)
123+
return nil, fmt.Errorf("creating basic auth secret: %s has failed: %w ", authSecret.GetName(), err)
124124
}
125125
}
126126

0 commit comments

Comments
 (0)