Skip to content

Commit 4810c5d

Browse files
ramsessanchezMicrosoft Graph DevX ToolingCopilot
authored
fix: use x-access-token form for GitHub App token git push (#3659)
GitHub App installation tokens must authenticate as the password with username "x-access-token" (https://x-access-token:<token>@github.com/...). The bare https://<token>@github.com/... form only works for PATs, so once the PAT was removed from ADO the weekly pushes failed with "could not read Password ... terminal prompts disabled". Updates all five pipeline push URLs. Copilot-Session: b1e4dbfd-ffcd-4a3e-bd35-1632b2912252 Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2ffdd99 commit 4810c5d

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

.azure-pipelines/command-metadata-refresh.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ extends:
148148
git status
149149
git add "$(System.DefaultWorkingDirectory)/config/ModuleMetadata.json"
150150
git commit -m 'Bump module versions after metadata generation.'
151-
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
151+
git push "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
152152
git status
153153
154154
- ${{ if eq(parameters.CreatePullRequest, true) }}:

.azure-pipelines/common-templates/create-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ steps:
3333
3434
git status
3535
gh auth login
36-
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
36+
git push "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
3737
gh pr create -t $Title -b $Body -B $BaseBranchName -H $Head

.azure-pipelines/common-templates/download-openapi-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ steps:
9292
git add .
9393
git commit -m 'Weekly OpenApiDocs Download.'
9494
git status
95-
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(Branch)
95+
git push --set-upstream "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(Branch)
9696
git status
9797
9898
# References

.azure-pipelines/generation-templates/generate-command-metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ steps:
3030
git status
3131
git add "$(System.DefaultWorkingDirectory)/src/Authentication/Authentication/custom/common/MgCommandMetadata.json"
3232
git commit -m 'Add generated MgCommandMetadata.json. [run ci]'
33-
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
33+
git push "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
3434
git status

.azure-pipelines/weekly-examples-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ extends:
9696
git status
9797
git add .
9898
git commit -m "Updating examples"
99-
git push --set-upstream https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git $(ComputeBranch.WeeklyExamplesBranch)
99+
git push --set-upstream "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.WeeklyExamplesBranch)
100100
git status
101101
- template: .azure-pipelines/common-templates/create-pr.yml@self
102102
parameters:

0 commit comments

Comments
 (0)