From a443b1ad8678f06a70ea3e7067f0895bbf82b454 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Mon, 13 Jul 2026 15:56:54 -0700 Subject: [PATCH] fix: use x-access-token form for GitHub App token git push GitHub App installation tokens must authenticate as the password with username "x-access-token" (https://x-access-token:@github.com/...). The bare https://@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. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b1e4dbfd-ffcd-4a3e-bd35-1632b2912252 --- .azure-pipelines/command-metadata-refresh.yml | 2 +- .azure-pipelines/common-templates/create-pr.yml | 2 +- .azure-pipelines/common-templates/download-openapi-docs.yml | 2 +- .../generation-templates/generate-command-metadata.yml | 2 +- .azure-pipelines/weekly-examples-update.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.azure-pipelines/command-metadata-refresh.yml b/.azure-pipelines/command-metadata-refresh.yml index 22931e33da..801e7ebd72 100644 --- a/.azure-pipelines/command-metadata-refresh.yml +++ b/.azure-pipelines/command-metadata-refresh.yml @@ -148,7 +148,7 @@ extends: git status git add "$(System.DefaultWorkingDirectory)/config/ModuleMetadata.json" git commit -m 'Bump module versions after metadata generation.' - git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" + git push "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" git status - ${{ if eq(parameters.CreatePullRequest, true) }}: diff --git a/.azure-pipelines/common-templates/create-pr.yml b/.azure-pipelines/common-templates/create-pr.yml index 99b02c20f7..ac63a66b13 100644 --- a/.azure-pipelines/common-templates/create-pr.yml +++ b/.azure-pipelines/common-templates/create-pr.yml @@ -33,5 +33,5 @@ steps: git status gh auth login - git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" + git push "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" gh pr create -t $Title -b $Body -B $BaseBranchName -H $Head diff --git a/.azure-pipelines/common-templates/download-openapi-docs.yml b/.azure-pipelines/common-templates/download-openapi-docs.yml index c814b5c29e..63287607f8 100644 --- a/.azure-pipelines/common-templates/download-openapi-docs.yml +++ b/.azure-pipelines/common-templates/download-openapi-docs.yml @@ -92,7 +92,7 @@ steps: git add . git commit -m 'Weekly OpenApiDocs Download.' git status - git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(Branch) + git push --set-upstream "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(Branch) git status # References diff --git a/.azure-pipelines/generation-templates/generate-command-metadata.yml b/.azure-pipelines/generation-templates/generate-command-metadata.yml index 27911f97f0..cae724dff8 100644 --- a/.azure-pipelines/generation-templates/generate-command-metadata.yml +++ b/.azure-pipelines/generation-templates/generate-command-metadata.yml @@ -30,5 +30,5 @@ steps: git status git add "$(System.DefaultWorkingDirectory)/src/Authentication/Authentication/custom/common/MgCommandMetadata.json" git commit -m 'Add generated MgCommandMetadata.json. [run ci]' - git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" + git push "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" git status diff --git a/.azure-pipelines/weekly-examples-update.yml b/.azure-pipelines/weekly-examples-update.yml index 674b08bb65..76a8efd247 100644 --- a/.azure-pipelines/weekly-examples-update.yml +++ b/.azure-pipelines/weekly-examples-update.yml @@ -96,7 +96,7 @@ extends: git status git add . git commit -m "Updating examples" - git push --set-upstream https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git $(ComputeBranch.WeeklyExamplesBranch) + git push --set-upstream "https://x-access-token:$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.WeeklyExamplesBranch) git status - template: .azure-pipelines/common-templates/create-pr.yml@self parameters: