You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On relative base path root
Microsoft.DotNet.Arcade.Sdk From Version 10.0.0-beta.26406.2 -> To Version 10.0.0-beta.26406.9
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
# Azure CLI can emit non-fatal Python warnings to stderr even when signing succeeds.
78
+
# Use the exit code to determine success for this invocation.
79
+
$PSNativeCommandUseErrorActionPreference=$false
80
+
$signatureBase64= az keyvault key sign `
77
81
--vault-name $KeyVaultName`
78
82
--name $KeyName`
79
83
--algorithm RS256 `
80
84
--digest $digestBase64`
81
-
--query value`
85
+
--query signature`
82
86
--output tsv `
83
87
--only-show-errors
88
+
$signExitCode=$LASTEXITCODE
84
89
}
85
90
catch {
86
91
Write-PipelineTelemetryError-Category 'Build'-Message "Failed to sign the JWT via Key Vault (key '$KeyName', vault '$KeyVaultName'): $_. Verify the service connection identity has the 'Key Vault Crypto User' role (Sign action) on the key."
87
92
exit1
88
93
}
89
-
if ($LASTEXITCODE-ne0-or [string]::IsNullOrWhiteSpace($signatureUrl)) {
90
-
Write-PipelineTelemetryError-Category 'Build'-Message "'az keyvault key sign' exited with code $LASTEXITCODE for key '$KeyName' in vault '$KeyVaultName'. Verify the service connection identity has the 'Key Vault Crypto User' role (Sign action) on the key."
if ($signExitCode-ne0-or [string]::IsNullOrWhiteSpace($signatureBase64)) {
98
+
Write-PipelineTelemetryError-Category 'Build'-Message "'az keyvault key sign' exited with code $signExitCode for key '$KeyName' in vault '$KeyVaultName'. Verify the service connection identity has the 'Key Vault Crypto User' role (Sign action) on the key."
0 commit comments