Fix auth header in webrequest
This commit is contained in:
Родитель
49b7cef7c4
Коммит
95dbeae848
|
@ -27,7 +27,7 @@ if($env:GITHUB_AUTH_TOKEN)
|
||||||
Write-Output "INFO: adding authentication header"
|
Write-Output "INFO: adding authentication header"
|
||||||
|
|
||||||
# authorization header with github token
|
# authorization header with github token
|
||||||
$auth = "Bearer $gitHubToken"
|
$auth = "Bearer $env:GITHUB_AUTH_TOKEN"
|
||||||
|
|
||||||
$webClient.Headers.Add("Authorization", $auth)
|
$webClient.Headers.Add("Authorization", $auth)
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче