Skip to content

Commit b8d2d15

Browse files
committed
try using token
1 parent 5c69773 commit b8d2d15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.pipelines/DSC-Official.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ extends:
271271
Write-Host "##vso[task.setsecret]$accessToken"
272272
$header = "Bearer $accessToken"
273273
Write-Host "##vso[task.setvariable variable=CARGO_REGISTRIES_POWERSHELL_TOKEN]$header"
274+
$token = ConvertTo-SecureString $accessToken -AsPlainText -Force
275+
$out = invoke-webrequest -uri "https://pkgs.dev.azure.com/powershell/PowerShell/_apis/packaging/feeds/powershell/cargo/packages/atty/versions/0.2.0?api-version=7.2-preview.1" -Token $token -Authentication Bearer -SkipHttpErrorCheck
276+
Write-Host ($out | Out-String)
274277
displayName: 'Get Azure DevOps Token'
275278
env:
276279
ob_restore_phase: true

0 commit comments

Comments
 (0)