From c78930454b25c63f817cbdd219028f50de05f9f5 Mon Sep 17 00:00:00 2001 From: Lessley Date: Fri, 29 Sep 2023 16:48:17 -0600 Subject: [PATCH] test federated credentials --- .github/workflows/test-flow.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test-flow.yml diff --git a/.github/workflows/test-flow.yml b/.github/workflows/test-flow.yml new file mode 100644 index 0000000000..3225112933 --- /dev/null +++ b/.github/workflows/test-flow.yml @@ -0,0 +1,23 @@ +name: Run Azure Login with OpenID Connect +on: workflow_distpatch: + +permissions: + id-token: write + contents: read + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: 'Az CLI login' + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: 'Run Azure CLI commands' + run: | + az account show + az group list + pwd \ No newline at end of file