Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "use the correct OIDC request url for the PowerShell task"
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ try {
}

# Request an OIDC token for the service connection from the VSTS REST API
$url = "$Env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI$Env:SYSTEM_TEAMPROJECTID/_apis/distributedtask/hubs/build/plans/$Env:SYSTEM_PLANID/jobs/$Env:SYSTEM_JOBID/oidctoken?api-version=7.1-preview.1&serviceConnectionId=$awsEndpoint"
$url = $Env:SYSTEM_OIDCREQUESTURI + "?api-version=7.1-preview.1&serviceConnectionId=$awsEndpoint"
$response = Invoke-WebRequest -Uri $url -Method POST -Headers $Headers -Body '{}' -ContentType "application/json" | ConvertFrom-Json
$token = $response.oidcToken

Expand Down