There was an error while loading. Please reload this page.
1 parent 36916d4 commit 1d0286cCopy full SHA for 1d0286c
1 file changed
azure-pipelines.yml
@@ -62,7 +62,9 @@ jobs:
62
git config --global user.email "nfbot"
63
git config --global user.name "nanoframework@outlook.com"
64
65
- $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$(GitHubToken)"))))"
+ # compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
66
+ # 'encoded token' is the Base64 of the string "nfbot:personal-token"
67
+ $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)")))"
68
69
$commit = Invoke-RestMethod -Uri "https://api.github.com/repos/nanoframework/nf-Visual-Studio-extension/commits/$(Build.SourceVersion)" -Header @{"Authorization"="$auth"} -ContentType "application/json" -Method GET
70
Write-host "Files changed:"
0 commit comments