From fb996872a1a8f23cfe688c15401eedb301628788 Mon Sep 17 00:00:00 2001 From: Jason Shepherd Date: Wed, 26 Apr 2017 15:22:20 +1000 Subject: [PATCH] updated transport to use http(s) url to prevent MiTM Attack --- .../io/fabric8/tooling/archetype/builder/ArchetypeBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archetype-builder/src/main/java/io/fabric8/tooling/archetype/builder/ArchetypeBuilder.java b/archetype-builder/src/main/java/io/fabric8/tooling/archetype/builder/ArchetypeBuilder.java index 7618f41faa..0cedda5e76 100644 --- a/archetype-builder/src/main/java/io/fabric8/tooling/archetype/builder/ArchetypeBuilder.java +++ b/archetype-builder/src/main/java/io/fabric8/tooling/archetype/builder/ArchetypeBuilder.java @@ -98,7 +98,7 @@ public void generateArchetypesFromGithubOrganisation(String githubOrg, File outp for (Map.Entry entry : entries) { String repoName = entry.getKey(); GHRepository repo = entry.getValue(); - String url = repo.getGitTransportUrl(); + String url = repo.gitHttpTransportUrl(); generateArchetypeFromGitRepo(outputDir, dirs, cloneParentDir, repoName, url, null); }