Skip to content

Update AuthToken for eng/common pipelines#16038

Merged
chidozieononiwu merged 2 commits into
mainfrom
pat-to-github-app
Jun 30, 2026
Merged

Update AuthToken for eng/common pipelines#16038
chidozieononiwu merged 2 commits into
mainfrom
pat-to-github-app

Conversation

@chidozieononiwu

Copy link
Copy Markdown
Member

This pull request updates pipeline templates to change the default value of the AuthToken parameter from a predefined variable to an empty string. This change impacts authentication handling in several pipeline steps related to Git operations.

Pipeline authentication parameter updates:

  • Changed the default value of the AuthToken parameter from $(azuresdk-github-pat) to an empty string in eng/common/pipelines/templates/steps/create-pull-request.yml, eng/common/pipelines/templates/steps/create-tags-and-git-release.yml, and eng/common/pipelines/templates/steps/git-push-changes.yml. This makes authentication explicit and avoids unintentional use of a default token. [1] [2] [3]

Copilot AI review requested due to automatic review settings June 16, 2026 21:35
@chidozieononiwu chidozieononiwu requested a review from a team as a code owner June 16, 2026 21:35
@chidozieononiwu chidozieononiwu requested a review from raych1 June 16, 2026 21:35

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

This pull request updates shared Azure DevOps pipeline step templates under eng/common to make GitHub authentication explicit by changing the AuthToken parameter default from $(azuresdk-github-pat) to an empty string, relying on the existing login-to-github.yml flow when no token is provided.

Changes:

  • Set AuthToken default to '' in multiple git-related step templates to avoid implicit use of $(azuresdk-github-pat).
  • Keep the existing conditional auto-login behavior (login-to-github.yml) when AuthToken is empty.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
eng/common/pipelines/templates/steps/git-push-changes.yml Changes default AuthToken to empty string so token usage becomes explicit while preserving the auto-login path.
eng/common/pipelines/templates/steps/create-tags-and-git-release.yml Changes default AuthToken to empty string so release/tag operations don’t implicitly use $(azuresdk-github-pat).
eng/common/pipelines/templates/steps/create-pull-request.yml Changes default AuthToken to empty string for PR creation flows; existing auto-login conditional remains in place.

Comment thread eng/common/pipelines/templates/steps/create-pull-request.yml
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@chidozieononiwu chidozieononiwu changed the title Update AuthToken fir eng/common pipelines Update AuthToken for eng/common pipelines Jun 25, 2026
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

chidozieononiwu added a commit to Azure/azure-sdk-for-js that referenced this pull request Jun 30, 2026
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#16038 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
chidozieononiwu added a commit to Azure/azure-sdk-for-rust that referenced this pull request Jun 30, 2026
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#16038 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
@chidozieononiwu chidozieononiwu merged commit 98fd2c0 into main Jun 30, 2026
4 of 6 checks passed
@chidozieononiwu chidozieononiwu deleted the pat-to-github-app branch June 30, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants