-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Sync eng/common directory with azure-sdk-tools for PR 15357 #48980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
b3772c3
fffbaa5
5fb7297
9a67b6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -304,6 +304,11 @@ extends: | |||||||||
| - job: Initialize | ||||||||||
| steps: | ||||||||||
| - checkout: self | ||||||||||
|
|
||||||||||
| - template: /eng/common/pipelines/templates/steps/login-to-github.yml | ||||||||||
| parameters: | ||||||||||
| TokenOwners: | ||||||||||
| - azure-sdk | ||||||||||
|
|
||||||||||
| - task: UseNode@1 | ||||||||||
| displayName: 'Install Node.js' | ||||||||||
|
|
@@ -394,6 +399,12 @@ extends: | |||||||||
| emitterNpmrcPath: $(Agent.TempDirectory)/${{ parameters.EmitterPackagePath }}/.npmrc | ||||||||||
| steps: | ||||||||||
| - checkout: self | ||||||||||
|
|
||||||||||
| - template: /eng/common/pipelines/templates/steps/login-to-github.yml | ||||||||||
| parameters: | ||||||||||
| TokenOwners: | ||||||||||
| - azure-sdk | ||||||||||
|
|
||||||||||
|
Comment on lines
+403
to
+407
|
||||||||||
| - template: /eng/common/pipelines/templates/steps/login-to-github.yml | |
| parameters: | |
| TokenOwners: | |
| - azure-sdk |
Copilot
AI
Apr 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create pull request is now hard-coded to use $(GH_TOKEN_Azure), but this template derives RepoOwner at runtime from Build.Repository.Name and can be azure-sdk (or something else) depending on which repo consumes this archetype. In those cases the GH_TOKEN_Azure installation token will not have permissions on the target org, and PR creation will fail with 401/403. Consider selecting the token variable based on $(RepoOwner) (e.g., set an AuthTokenForPR variable in the preceding PowerShell step by reading the appropriate GH_TOKEN* env var) and pass that into Submit-PullRequest.ps1 instead of always using GH_TOKEN_Azure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added
login-to-github.ymlstep doesn't appear to be used anywhere later in theInitializejob (there are no references toGH_TOKEN*in this job). Sincelogin-to-github.ps1mints a GitHub App token via Key Vault signing, running it unnecessarily adds time and an external dependency for every pipeline run. Please remove it, or wire the minted token into a later step that actually requires GitHub auth in this job.