Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- Fix github auth token composition.
  • Loading branch information
josesimoes committed Oct 3, 2023
1 parent 010b441 commit ae56f61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ steps:
# compute authorization header in format "AUTHORIZATION: basic 'encoded token'"
# 'encoded token' is the Base64 of the string "nfbot:personal-token"
$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)"))))"
$auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nfbot:$(GitHubToken)")))"
git -c http.extraheader="AUTHORIZATION: $auth" push origin "HEAD:$(Build.SourceBranchName)"
# report error
Expand Down

0 comments on commit ae56f61

Please sign in to comment.