Skip to content

Commit 1d0286c

Browse files
committed
Work CD-CI
- Fix auth header computation. ***NO_CI*** (cherry picked from commit bebe9c9)
1 parent 36916d4 commit 1d0286c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ jobs:
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:"

0 commit comments

Comments
 (0)