diff --git a/.github/workflows/test-openid.yml b/.github/workflows/test-openid.yml new file mode 100644 index 000000000..f7cd81ccb --- /dev/null +++ b/.github/workflows/test-openid.yml @@ -0,0 +1,28 @@ +name: Run Azure Login with OpenID Connect + +on: + workflow_dispatch: + push: + +permissions: + id-token: write + contents: read + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + environment: ci + 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 + az keyvault secret show --name slack-api-token --vault-name vscode-probot --query value -o tsv | wc -c