diff --git a/.github/workflows/sign-scripts-development.yml b/.github/workflows/sign-scripts-development.yml index 28a8be7c..4429b078 100644 --- a/.github/workflows/sign-scripts-development.yml +++ b/.github/workflows/sign-scripts-development.yml @@ -29,7 +29,9 @@ jobs: uses: azure/powershell@v1 with: inlineScript: | - $token = Get-AzAccessToken + $env = (Get-AzContext).Environment + Write-Host "Environment is $env" + $token = Get-AzAccessToken -ResourceUrl $env Write-Host "Access Token is $token" #Install-Module WindowsCompatibility -Confirm $CertBase64 = Get-AzKeyVaultSecret -VaultName $env:VAULTNAME -Name $env:CERTNAME -AsPlainText