Sync eng/common directory with azure-sdk-tools for PR 10664 (#6576)
* Add option to perserve auth * Update eng/common/pipelines/templates/steps/sparse-checkout.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: ray chen <raychen@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
6b591a8a12
commit
5d4324dd7d
@ -14,6 +14,9 @@ parameters:
|
||||
- name: TokenToUseForAuth
|
||||
type: string
|
||||
default: ''
|
||||
- name: PreserveAuthToken
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
steps:
|
||||
- ${{ if not(parameters.SkipCheckoutNone) }}:
|
||||
@ -137,7 +140,7 @@ steps:
|
||||
pwsh: true
|
||||
workingDirectory: $(System.DefaultWorkingDirectory)
|
||||
|
||||
- ${{ if ne(parameters.TokenToUseForAuth, '') }}:
|
||||
- ${{ if and(ne(parameters.TokenToUseForAuth, ''), not(parameters.PreserveAuthToken)) }}:
|
||||
- pwsh: |
|
||||
git config unset --global "http.extraheader"
|
||||
displayName: Removing git config auth header
|
||||
|
||||
Loading…
Reference in New Issue
Block a user