@@ -347,9 +347,6 @@ ClassMethod GetDefaultBranch(path As %String) As %String
347
347
Set ht = ##class (%Net.HttpRequest ).%New ()
348
348
Set ht .Server = " api.github.com"
349
349
Set ht .SSLConfiguration = ##class (ZPM.Utils ).GetSSLConfiguration ()
350
- Set settings = ##class (ZPM.Settings ).%Get ()
351
- Set ht .Username = settings .BasicAuthUsername
352
- Set ht .Password = settings .BasicAuthAccessToken
353
350
Set ht .Https = 1
354
351
Set ht .Location = " /repos" _path
355
352
$$$ThrowOnError(ht .Get ())
@@ -373,9 +370,6 @@ ClassMethod DownloadPackageFromGitHub(url As %String, Output branch As %String)
373
370
If $data (tComponents (" port" ), port ), port '=" " {
374
371
Set ht .Port = port
375
372
}
376
- Set settings = ##class (ZPM.Settings ).%Get ()
377
- Set ht .Username = settings .BasicAuthUsername
378
- Set ht .Password = settings .BasicAuthAccessToken
379
373
Set ht .Location = tComponents (" path" )_" archive/" _branch _" .tar.gz"
380
374
$$$ThrowOnError(ht .Get ())
381
375
If (ht .HttpResponse .StatusCode '=200 ) {
@@ -407,12 +401,8 @@ ClassMethod GetModuleMeta(url As %String) As %DynamicObject
407
401
If $data (tComponents (" port" ), port ), port '=" " {
408
402
Set ht .Port = port
409
403
}
410
- Set location = tComponents (" path" )_..GetDefaultBranch (tComponents (" path" ))_" /module.xml"
411
- Set settings = ##class (ZPM.Settings ).%Get ()
412
- If (settings .BasicAuthAccessToken '= " " ) {
413
- Do ht .SetHeader (" Authorization" ," token " _settings .BasicAuthAccessToken )
414
- }
415
- $$$ThrowOnError(ht .Get (location ))
404
+ Set ht .Location = tComponents (" path" )_" master/module.xml"
405
+ $$$ThrowOnError(ht .Get ())
416
406
If (ht .HttpResponse .StatusCode '=200 ) {
417
407
$$$ThrowStatus($$$ERROR(5001 ," Unable to download XML " _ht .Location ))
418
408
}
0 commit comments