diff --git a/internal/service/repositories/repositories.go b/internal/service/repositories/repositories.go index 7a6f3da..3e9d07f 100644 --- a/internal/service/repositories/repositories.go +++ b/internal/service/repositories/repositories.go @@ -662,7 +662,7 @@ func validateUrl(messages []string, repoUrl string) []string { if repoUrl == "" { messages = append(messages, "field url is mandatory") } else { - if !strings.HasPrefix(repoUrl, "ssh://") { + if !(strings.HasPrefix(repoUrl, "ssh://") || strings.HasPrefix(repoUrl, "git@github.com")) { messages = append(messages, "field url must contain ssh git url") } }