Skip to content

Sync eng/common directory with azure-sdk-tools for PR 16662 - #3221

Open
azure-sdk-automation[bot] wants to merge 1 commit into
mainfrom
sync-eng-common-expandEngCommonWorkflow-16662
Open

Sync eng/common directory with azure-sdk-tools for PR 16662#3221
azure-sdk-automation[bot] wants to merge 1 commit into
mainfrom
sync-eng-common-expandEngCommonWorkflow-16662

Conversation

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#16662 See eng/common workflow

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

Adds more flexible GitHub token export naming and improves robustness when resolving GitHub App installation IDs, and wires the new option through the Azure DevOps pipeline template.

Changes:

  • Add AlwaysUseOwnerSuffix to optionally always export tokens as <Prefix>_<Owner>, even for a single owner.
  • Harden installation listing/matching by introducing Get-PropertyValue and tolerating differing response shapes (login vs account.login), plus normalize owner/repo to owner.
  • Wrap script execution in Invoke-LoginToGitHub and skip invocation during Pester runs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
eng/common/scripts/login-to-github.ps1 Adds owner-suffix option, response-shape tolerant installation lookup, and test-run guard.
eng/common/pipelines/templates/steps/login-to-github.yml Passes new AlwaysUseOwnerSuffix argument; adjusts AzureCLI task configuration.

Comment thread eng/common/scripts/login-to-github.ps1
Comment thread eng/common/scripts/login-to-github.ps1
Comment on lines 21 to 22
- task: AzureCLI@2
name: GenerateGitHubToken
displayName: "Login to GitHub"
Comment thread eng/common/scripts/login-to-github.ps1
@azure-sdk-automation
azure-sdk-automation Bot force-pushed the sync-eng-common-expandEngCommonWorkflow-16662 branch 2 times, most recently from b4ac891 to ab44feb Compare August 5, 2026 22:26
@azure-sdk-automation
azure-sdk-automation Bot force-pushed the sync-eng-common-expandEngCommonWorkflow-16662 branch from ab44feb to f8b4cbe Compare August 6, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants