File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ param(
2929 [switch ]
3030 $UpdateDependencies ,
3131
32- # PAT used to access the versions repo in AzDO
32+ # Access token used to access the versions repo in AzDO
3333 [string ]
3434 $AzdoVersionsRepoInfoAccessToken ,
3535
36- # PAT used to access internal AzDO build artifacts
36+ # Access token used to access internal AzDO build artifacts
3737 [string ]
3838 $InternalAccessToken
3939)
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ parameters:
77- name : useInternalBuild
88 type : boolean
99 default : false
10+ # Access token for internal-build auth. Set the `internalAccessToken` YAML variable to override this if needed.
11+ - name : internalAccessToken
12+ type : string
13+ default : ' $(internalAccessToken)'
1014- name : skipPullRequest
1115 type : boolean
1216 default : false
1822 displayName : Create Update Dependencies container
1923- powershell : |
2024 if ("${{ parameters.useInternalBuild }}" -eq "true") {
21- $pat="$(dn-bot-devdiv-dnceng-rw-code-pat)"
25+ $pat='${{ parameters.internalAccessToken }}'
2226 } else {
2327 $pat="$(BotAccount-dotnet-docker-bot-PAT)"
2428 }
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ parameters:
33 # Comma-delimited list of SDK versions to target (overrides the use of channel var to determine latest version)
44 sdkVersions : " "
55 buildId : " "
6+ # Access token for internal-build auth. Set the `internalAccessToken` YAML variable to override this if needed.
7+ internalAccessToken : ' $(internalAccessToken)'
68 skipPullRequest : false
79
810steps :
@@ -24,9 +26,10 @@ steps:
2426 }
2527
2628 if ("${{ parameters.useInternalBuild }}" -eq "true") {
29+ $internalToken = '${{ parameters.internalAccessToken }}'
2730 $args["UseInternalBuild"] = $true
28- $args["InternalAccessToken"] = '$(System.AccessToken)'
29- $args["AzdoVersionsRepoInfoAccessToken"] = "$(dn-bot-devdiv-dnceng-rw-code-pat)"
31+ $args["InternalAccessToken"] = $internalToken
32+ $args["AzdoVersionsRepoInfoAccessToken"] = $internalToken
3033 }
3134
3235 $(engPath)/Get-DropVersions.ps1 @args
4851 }
4952
5053 if ("${{ parameters.useInternalBuild }}" -eq "true") {
51- $args["InternalAccessToken"] = '$(System.AccessToken) '
54+ $args["InternalAccessToken"] = '${{ parameters.internalAccessToken }} '
5255 $args["InternalBaseUrl"] = '"$(internalBaseUrl)"'
5356 } else {
5457 $args["ReleaseState"] = $(Get-ProductReleaseState)
8689 customArgsArray : " $(customArgsArray)"
8790 skipPullRequest : ${{ parameters.skipPullRequest }}
8891 useInternalBuild : ${{ parameters.useInternalBuild }}
92+ internalAccessToken : ${{ parameters.internalAccessToken }}
You can’t perform that action at this time.
0 commit comments