We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dfb319 commit 49b7cefCopy full SHA for 49b7cef
install-nf-build-components.ps1
@@ -20,12 +20,14 @@ $tempDir = $env:RUNNER_TEMP
20
[System.Net.WebClient]$webClient = New-Object System.Net.WebClient
21
$webClient.Headers.Add("User-Agent", "request")
22
$webClient.Headers.Add("Accept", "application/vnd.github.v3+json")
23
+$webClient.Headers.Add("ContentType", "application/json")
24
25
if($env:GITHUB_AUTH_TOKEN)
26
{
27
Write-Output "INFO: adding authentication header"
28
- $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$env:GITHUB_AUTH_TOKEN"))))"
29
+ # authorization header with github token
30
+ $auth = "Bearer $gitHubToken"
31
32
$webClient.Headers.Add("Authorization", $auth)
33
}
0 commit comments