diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73d6155..70110fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -57,13 +57,10 @@ jobs: - name: Install azd uses: Azure/setup-azd@v1.0.0 - - name: Log in with Azure (Federated Credentials) - if: ${{ env.AZURE_CLIENT_ID != '' }} + - name: Log in with Azure using Service Principal run: | - az login - --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} - --tenant ${{ secrets.AZURE_TENANT_ID }} - shell: pwsh + az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }} + shell: bash - name: Install Bicep CLI run: az bicep install