Skip to content

Commit 1f0f75b

Browse files
committed
Also write token file
1 parent 72a8e62 commit 1f0f75b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ci/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ stages:
145145
"##vso[task.setvariable variable=AZURE_CLIENT_ID;issecret=true]$servicePrincipalId"
146146
"##vso[task.setvariable variable=AZURE_ID_TOKEN;issecret=true]$idToken"
147147
"##vso[task.setvariable variable=AZURE_TENANT_ID;issecret=true]$tenantId"
148+
$tokenPath = "$env:AGENT_TEMPDIRECTORY\federated-token.jwt"
149+
Set-Content -Path $tokenPath -Value $env:idToken
150+
Write-Host "##vso[task.setvariable variable=AZURE_FEDERATED_TOKEN_FILE]$tokenPath"
148151
addSpnToEnvironment: true
149152

150153
- powershell: |

0 commit comments

Comments
 (0)