Skip to content

Transition non-common azure-sdk-tools definitions to GithubApp#15457

Open
scbedd wants to merge 5 commits intomainfrom
RemoveAzsdkPatUsage
Open

Transition non-common azure-sdk-tools definitions to GithubApp#15457
scbedd wants to merge 5 commits intomainfrom
RemoveAzsdkPatUsage

Conversation

@scbedd
Copy link
Copy Markdown
Member

@scbedd scbedd commented May 2, 2026

Affected ADO Pipeline Definitions

  • ✅ = actual run confirmed
  • ☑ = confirmed by proxy run (eg another tool using same base template passed)

Related to #9842

ID Pipeline Name YAML Link Confirmed
5791 automation - agent-pool-migration eng/pipelines/agent-pool-migration.yml open
2081 automation - branch-cleanup eng/pipelines/branch-cleanup.yml open Run
1752 automation - mirror-repos eng/pipelines/mirror-repos.yml open
5112 automation - pipeline-owners-extraction eng/pipelines/pipeline-owners-extraction.yml open
6815 automation - samples-automation tools/azure-rest-api-specs-examples-automation/samples-automation.yml open
5213 automation - sync-main-to-live eng/pipelines/merge-docs-main-to-live.yml open
7941 azure-sdk-qa-bot-knowledge-sync-dev tools/sdk-ai-bots/azure-sdk-qa-bot-knowledge-sync/sync_knowledge.yml open
7900 azure-sdk-qa-bot-knowledge-sync-prod tools/sdk-ai-bots/azure-sdk-qa-bot-knowledge-sync/sync_knowledge.yml open
7476 Stress Test Addons Helm Chart Publish tools/stress-cluster/cluster/kubernetes/stress-test-addons/publish.yml open
3048 stresswatcher tools/stress-cluster/services/Stress.Watcher/ci.yml open
7175 tools - apiview-token-utility src/dotnet/APIView/APIViewJsonUtility/ci.yml open
7684 tools - azsdk-cli tools/azsdk-cli/ci.yml open
2945 tools - Azure.ClientSdk.Analyzers src/dotnet/Azure.ClientSdk.Analyzers/ci.yml open
6461 tools - codeowners-utils tools/codeowners-utils/ci.yml open
7763 tools - content-validation tools/content-validation/ci.yml open
7044 tools - csharpapiparser tools/apiview/parsers/csharp-api-parser/ci.yml open
5984 tools - github-event-processor tools/github-event-processor/ci.yml open
2340 tools - http-fault-injector tools/http-fault-injector/ci.yml open
3522 tools - identity-resolution tools/identity-resolution/ci.yml open
6147 tools - net-changelog-gen-mgmt tools/net-changelog-gen-mgmt/ci.yml open
1815 tools - notification-configuration tools/notification-configuration/ci.yml open
643 tools - pipeline-generator tools/pipeline-generator/ci.yml open
5109 tools - pipeline-owners-extractor tools/pipeline-owners-extractor/ci.yml open
1696 tools - repo-versioning eng/pipelines/tools-repo-versioning.yml open
5978 tools - secret-management tools/secret-management/ci.yml open
2939 tools - SnippetGenerator tools/snippet-generator/ci.yml open
5531 tools - swaggerapiparser tools/apiview/parsers/swagger-api-parser/ci.yml open
6130 tools - sync-.github eng/pipelines/sync-.github.yml open
1372 tools - sync-eng-common eng/pipelines/sync-eng-common.yml open
2660 tools - test-proxy tools/test-proxy/ci.yml open Run
5212 tools - test-proxy - tests tools/test-proxy/tests.yml open Run
7487 tools - update-release-branch-in-specs eng/pipelines/update-release-branch-in-specs.yml open
2080 training - setup-tutorial-branch eng/pipelines/setup-tutorial-branch.yml open

@scbedd scbedd self-assigned this May 2, 2026
Copilot AI review requested due to automatic review settings May 2, 2026 00:53
@github-actions github-actions Bot added the azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli label May 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR continues the repo-wide migration away from the azuresdk-github-pat secret by switching various pipelines/scripts to use GitHub App installation tokens minted via login-to-github.yml, and updating git auth URLs to the x-access-token: format required for App tokens.

Changes:

  • Add /eng/common/.../login-to-github.yml to multiple pipelines and swap $(azuresdk-github-pat) usages to $(GH_TOKEN) / $(GH_TOKEN_<Owner>).
  • Update HTTPS clone/push URL construction to https://x-access-token:<token>@github.com/... in PowerShell/TS/C#.
  • Update create-pull-request.yml callers to pass AuthToken: '' so the template performs auto-login.
Show a summary per file
File Description
tools/test-proxy/tests.yml Removes a no-op comment in the test stage definition.
tools/test-proxy/scripts/test-scripts/assets.Tests.Helpers.ps1 Switches clone URL to x-access-token format.
tools/test-proxy/pipelines/proxy-solution-integration-tests.yml Adds GitHub App login step and uses $(GH_TOKEN) for integration tests.
tools/test-proxy/pipelines/proxy-cli-integration-tests.yml Adds GitHub App login step and uses $(GH_TOKEN) for integration tests.
tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs Switches clone URL to x-access-token format.
tools/stress-cluster/cluster/kubernetes/stress-test-addons/publish.yml Uses AuthToken: '' to rely on create-pull-request auto-login.
tools/sdk-ai-bots/azure-sdk-qa-bot-knowledge-sync/sync_knowledge.yml Adds GitHub App login step and swaps PAT variable to $(GH_TOKEN).
tools/sdk-ai-bots/azure-sdk-qa-bot-knowledge-sync/src/DailySyncKnowledge.ts Switches authenticated URL format to x-access-token.
tools/azure-rest-api-specs-examples-automation/samples-automation.yml Adds GitHub App login step and replaces PAT usage with $(GH_TOKEN).
tools/azsdk-cli/auto-documentation.yml Uses AuthToken: '' to rely on create-pull-request auto-login.
tools/assets-automation/tests.yml Adds GitHub App login step and replaces PAT usage with $(GH_TOKEN).
eng/pipelines/update-release-branch-in-specs.yml Adds GitHub App login step and threads $(GH_TOKEN) into the merge template.
eng/pipelines/tools-repo-versioning.yml Adds GitHub App login step and uses $(GH_TOKEN) for tag push URL.
eng/pipelines/templates/steps/sync-repo-merge-branch.yml Replaces PAT env usage with a passed-in GH_TOKEN parameter.
eng/pipelines/templates/steps/sync-directory.yml Replaces PAT usage with $(GH_TOKEN) for pushes/comments/metrics (but adds an unused AuthToken parameter).
eng/pipelines/templates/steps/ref-updater.yml Uses AuthToken: '' to rely on create-pull-request auto-login.
eng/pipelines/templates/stages/archetype-sdk-tool-repo-sync.yml Adds GitHub App login steps and replaces PATs with $(GH_TOKEN).
eng/pipelines/templates/stages/archetype-sdk-publish-net.yml Adds GitHub App login and uses per-owner tokens ($(GH_TOKEN_Azure), $(GH_TOKEN_azure-sdk)).
eng/pipelines/templates/stages/archetype-autorest-preview.yml Adds GitHub App login and updates git push URL/token usage (currently has token wiring issues).
eng/pipelines/setup-tutorial-branch.yml Adds GitHub App login step and replaces PAT input with $(GH_TOKEN).
eng/pipelines/pipeline-owners-extraction.yml Adds GitHub App login step and replaces PAT usage with $(GH_TOKEN); uses auto-login for PR creation.
eng/pipelines/merge-docs-main-to-live.yml Adds GitHub App login and updates git URL/token usage; passes AuthToken into sync step.
eng/pipelines/branch-cleanup.yml Adds multi-owner GitHub App login and swaps PATs to per-owner tokens.
eng/pipelines/agent-pool-migration.yml Uses AuthToken: '' to rely on create-pull-request auto-login.

Copilot's findings

  • Files reviewed: 24/24 changed files
  • Comments generated: 3

Comment on lines +495 to +499
- template: /eng/common/pipelines/templates/steps/login-to-github.yml
parameters:
TokenOwners:
- azure-sdk

Comment thread eng/pipelines/templates/stages/archetype-autorest-preview.yml Outdated
Comment thread eng/pipelines/templates/steps/sync-directory.yml
@scbedd scbedd moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 🚀🌒🧑‍🚀 May 5, 2026
@ronniegeraghty ronniegeraghty added the AzSDK Tools Agent Issue related to the AzSDK Tools Agent. label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AzSDK Tools Agent Issue related to the AzSDK Tools Agent. azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli

Projects

Development

Successfully merging this pull request may close these issues.

3 participants