File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 6262 git config --global user.email "nfbot"
6363 git config --global user.name "nanoframework@outlook.com"
6464
65- $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$(GitHubToken)"))))"
65+ # 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)")))"
6668
6769 $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
6870 Write-host "Files changed:"
You can’t perform that action at this time.
0 commit comments