testboard: alwaus use https URLs
The AWS test runner does not have a GitHub ssh key, so can only access repositories via https. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
parent
512f62858a
commit
ce302e0c65
|
@ -61,9 +61,13 @@ def subprocess_output(*args, **kwargs):
|
||||||
# to be public.
|
# to be public.
|
||||||
def fixup_github(remote):
|
def fixup_github(remote):
|
||||||
git_url = 'git@github.com:'
|
git_url = 'git@github.com:'
|
||||||
|
ssh_url = 'ssh://' + git_url
|
||||||
|
https_url = 'https://github.com/'
|
||||||
url, repo = remote
|
url, repo = remote
|
||||||
if url.startswith(git_url):
|
if url.startswith(git_url):
|
||||||
return 'https://github.com/' + url[len(git_url):], repo
|
return https_url + url[len(git_url):], repo
|
||||||
|
elif url.startswith(ssh_url):
|
||||||
|
return https_url + url[len(ssh_url):], repo
|
||||||
else:
|
else:
|
||||||
return remote
|
return remote
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue