From ca34dda46b6571ac54107df263f46f136ee8be75 Mon Sep 17 00:00:00 2001 From: "Nic Champagne Williamson [MSFT]" <45700886+champnic@users.noreply.github.com> Date: Wed, 15 May 2024 16:46:37 -0700 Subject: [PATCH] Update syncAdo.yml Testing azure managed identity --- .github/workflows/syncAdo.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/syncAdo.yml b/.github/workflows/syncAdo.yml index 1222674f4..4c3557568 100644 --- a/.github/workflows/syncAdo.yml +++ b/.github/workflows/syncAdo.yml @@ -4,6 +4,10 @@ on: issues: types: [labeled, closed, reopened] +permissions: + id-token: write + contents: read + jobs: alert: runs-on: ubuntu-latest @@ -20,3 +24,15 @@ jobs: ado_area_path: 'Edge\Web Experience\WebView2' ado_tags: 'WV2_GitHub' ado_gh_closed_tag: 'WV2_GitHub_Closed' + - name: Azure login + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + - name: Azure CLI script + uses: azure/cli@v2 + with: + azcliversion: latest + inlineScript: | + az account show