fix(core): Allow undefined workflow owner on source control for retro compatibility (#17419)

This commit is contained in:
Guillaume Jacquart
2025-07-18 14:18:10 +02:00
committed by GitHub
parent a5d14a2509
commit 78cb5b6409
2 changed files with 6 additions and 3 deletions

View File

@@ -163,11 +163,14 @@ export class SourceControlImportService {
return false;
}
return (
context.hasAccessToAllProjects() || findOwnerProject(remote.owner, accessibleProjects)
context.hasAccessToAllProjects() ||
(remote.owner && findOwnerProject(remote.owner, accessibleProjects))
);
})
.map((remote) => {
const project = findOwnerProject(remote.owner, accessibleProjects);
const project = remote.owner
? findOwnerProject(remote.owner, accessibleProjects)
: undefined;
return {
id: remote.id,
versionId: remote.versionId ?? '',