Skip to content

Commit feeb04f

Browse files
committed
inject cred provider
1 parent cde17c0 commit feeb04f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.pipelines/DSC-Official.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ extends:
284284
Write-Host "Use 'powershell' CFS"
285285
Add-Content -Path "./.cargo/config.toml" -Value '[source.crates-io]'
286286
Add-Content -Path "./.cargo/config.toml" -Value 'replace-with = "powershell"'
287+
Add-Content -Path "./.cargo/config.toml" -Value '[registry]'
288+
Add-Content -Path "./.cargo/config.toml" -Value 'global-credential-provider = ["cargo:token"]'
287289
288290
$env:CARGO_HTTP_DEBUG=true
289291
$env:CARGO_LOG='network=trace'

0 commit comments

Comments
 (0)