@@ -1057,8 +1057,7 @@ end
1057
1057
1058
1058
# Init remote repository, and its local counterpart
1059
1059
function init_jll_package (code_dir, deploy_repo;
1060
- gh_auth = Wizard. github_auth (;allow_anonymous= false ),
1061
- gh_username = gh_get_json (DEFAULT_API, " /user" ; auth= gh_auth)[" login" ])
1060
+ gh_auth = Wizard. github_auth (;allow_anonymous= false ))
1062
1061
url = " https://github.com/$(deploy_repo) "
1063
1062
try
1064
1063
# This throws if it does not exist
@@ -1086,13 +1085,13 @@ function init_jll_package(code_dir, deploy_repo;
1086
1085
if ! isdir (code_dir)
1087
1086
# If it does exist, clone it down:
1088
1087
@info (" Cloning wrapper code repo from $(url) into $(code_dir) " )
1089
- Wizard. with_gitcreds (gh_username , gh_auth. token) do creds
1088
+ Wizard. with_gitcreds (" x-access-token " , gh_auth. token) do creds
1090
1089
LibGit2. clone (url, code_dir; credentials= creds)
1091
1090
end
1092
1091
else
1093
1092
# Otherwise, hard-reset to latest main:
1094
1093
repo = LibGit2. GitRepo (code_dir)
1095
- Wizard. with_gitcreds (gh_username , gh_auth. token) do creds
1094
+ Wizard. with_gitcreds (" x-access-token " , gh_auth. token) do creds
1096
1095
LibGit2. fetch (repo; credentials= creds)
1097
1096
end
1098
1097
main_branch = LibGit2. lookup_branch (repo, " origin/main" , true )
0 commit comments