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
Sync eng/common directory with azure-sdk-tools for PR 8388 (Azure#44448)
* Removal of the devops release PAT
* Don't pass in the access token, just use the AzureCLI task and do everything in the scripts
* Updates for feedback
---------
Co-authored-by: James Suplizio <[email protected]>
# Get a temp access token from the logged in az cli user for azure devops resource
9
+
$headerAccessToken= (az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798"--query "accessToken"--output tsv)
10
+
11
+
if ([System.String]::IsNullOrEmpty($headerAccessToken)) {
12
+
throw"Unable to create the DevOpsRestHeader due to access token being null or empty. The caller needs to be logged in with az login to an account with enough permissions to edit work items in the azure-sdk Release team project."
# Fail the build if any validation is not successful for a release build
@@ -254,7 +246,7 @@ Write-Host "Package Name status:" $apireviewDetails.PackageNameApproval.Status
254
246
255
247
if ($IsReleaseBuild)
256
248
{
257
-
if (!$updatedWi-or$changelogStatus.Status-ne"Success"-or$apireviewDetails.ApiviewApproval.Status-ne"Approved"-or$apireviewDetails.PackageNameApproval.Status-ne"Approved") {
249
+
if (!$updatedWi-or$changelogStatus.Status-ne"Success"-or$apireviewDetails.ApiviewApproval.Status-ne"Approved"-or$apireviewDetails.PackageNameApproval.Status-ne"Approved") {
258
250
Write-Error"At least one of the Validations above failed for package $pkgName with version $versionString."
0 commit comments