File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,20 @@ jobs:
125
125
scriptType : pscore
126
126
scriptLocation : inlineScript
127
127
inlineScript : |
128
+ Write-Host "Service Connection ID: ${env:AZURESUBSCRIPTION_SERVICE_CONNECTION_ID}"
129
+ Write-Host "Service Connection endpoint data:"
130
+ Get-ChildItem -Path Env: -Recurse `
131
+ -Include AZURESUBSCRIPTION_*, ENDPOINT_DATA_*, SYSTEM_OIDC* `
132
+ | Sort-Object -Property Name `
133
+ | ForEach-Object {
134
+ if ($_.Name -match 'SECRET|TOKEN') {
135
+ $_.Value = '***'
136
+ }
137
+ $_
138
+ } `
139
+ | Format-Table -HideTableHeaders -Property @{Expression='Name';Width=75}, @{Expression='Value';Width=175} -Wrap `
140
+ | Out-String -Width 256
141
+
128
142
$oidcTokenUrl = "${env:SYSTEM_OIDCREQUESTURI}?api-version=7.1&serviceConnectionId=${env:AZURESUBSCRIPTION_SERVICE_CONNECTION_ID}"
129
143
Write-Host "oidcTokenUrl: $oidcTokenUrl"
130
144
You can’t perform that action at this time.
0 commit comments