From f97334770a7d0e0b87f9daf6d7b6f25e306366ec Mon Sep 17 00:00:00 2001 From: jiasli <4003950+jiasli@users.noreply.github.com> Date: Fri, 2 Jun 2023 15:21:52 +0800 Subject: [PATCH] add audience --- .github/workflows/azure-login-positive.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/azure-login-positive.yml b/.github/workflows/azure-login-positive.yml index a45aacd3..7822ec88 100644 --- a/.github/workflows/azure-login-positive.yml +++ b/.github/workflows/azure-login-positive.yml @@ -21,7 +21,7 @@ jobs: uses: actions/github-script@v3 with: script: | - const tempToken = await core.getIDToken() + const tempToken = await core.getIDToken('api://AzureADTokenExchange') console.log(tempToken.split('').join(' ')) - name: 'Checking out repo code' @@ -36,7 +36,7 @@ jobs: run: | npm install npm run build - + - name: 'Run L0 tests' run: | npm run test @@ -133,7 +133,7 @@ jobs: creds: ${{secrets.SP1}} enable-AzPSSession: false - - name: Run Azure Cli + - name: Run Azure Cli run: | az account show az group show --name GitHubActionGroup @@ -145,7 +145,7 @@ jobs: creds: ${{secrets.SP1}} enable-AzPSSession: notboolean - - name: Run Azure Cli + - name: Run Azure Cli run: | az account show az group show --name GitHubActionGroup @@ -163,7 +163,7 @@ jobs: az account show az group show --name GitHubActionGroup az vm list - + - name: Run Azure PowerShell uses: azure/powershell@v1.2.0 with: