diff --git a/pkg/microservice/aslan/core/workflow/service/workflow/workflow.go b/pkg/microservice/aslan/core/workflow/service/workflow/workflow.go index 6177a82605..7afaa3f583 100644 --- a/pkg/microservice/aslan/core/workflow/service/workflow/workflow.go +++ b/pkg/microservice/aslan/core/workflow/service/workflow/workflow.go @@ -434,6 +434,9 @@ func PreSetWorkflow(productName string, log *zap.SugaredLogger) ([]*PreSetResp, } } } + for _, repo := range preSet.Repos { + repo.RepoNamespace = repo.GetRepoNamespace() + } resp = append(resp, preSet) } return resp, nil diff --git a/pkg/microservice/aslan/core/workflow/service/workflow/workflow_task.go b/pkg/microservice/aslan/core/workflow/service/workflow/workflow_task.go index 9b1c77a1ef..36267abf05 100644 --- a/pkg/microservice/aslan/core/workflow/service/workflow/workflow_task.go +++ b/pkg/microservice/aslan/core/workflow/service/workflow/workflow_task.go @@ -360,6 +360,9 @@ func EnsureBuildResp(mb *commonmodels.Build) { } mb.Repos = mb.SafeRepos() + for _, repo := range mb.Repos { + repo.RepoNamespace = repo.GetRepoNamespace() + } if mb.PreBuild != nil { if len(mb.PreBuild.Installs) == 0 {