fix: prebuild user without ssh key when fetching owner ctx (#18541)

This commit is contained in:
Steven Masley
2025-06-24 16:49:36 +00:00
committed by GitHub
parent cd484db872
commit e5eb2a8322
+1 -1
View File
@@ -299,7 +299,7 @@ func (r *dynamicRenderer) getWorkspaceOwnerData(ctx context.Context, ownerID uui
// unless the template leaks it.
// nolint:gocritic
key, err := r.db.GetGitSSHKey(dbauthz.AsProvisionerd(ctx), ownerID)
if err != nil {
if err != nil && !xerrors.Is(err, sql.ErrNoRows) {
return xerrors.Errorf("ssh key: %w", err)
}