diff --git a/.github/workflows/checkpermissions.yml b/.github/workflows/checkpermissions.yml index 7e61da4..794ce91 100644 --- a/.github/workflows/checkpermissions.yml +++ b/.github/workflows/checkpermissions.yml @@ -14,26 +14,28 @@ jobs: build: runs-on: ubuntu-latest env: - AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} - AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} - AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} - SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} ACR_NAME: ${{ github.event.inputs.ACR_NAME }} RESOURCE_GROUP: ${{ github.event.inputs.RESOURCE_GROUP }} steps: - name: Checkout Repository Content uses: actions/checkout@v4 - + - name: Azure Login uses: azure/login@v2 with: - creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}' + creds: | + { + "clientId": "${{ secrets.AZURE_CLIENT_ID }}", + "clientSecret": "${{ secrets.AZURE_CLIENT_SECRET }}", + "subscriptionId": "${{ secrets.AZURE_SUBSCRIPTION_ID }}", + "tenantId": "${{ secrets.AZURE_TENANT_ID }}" + } - name: Check the role env: - APP_ID: ${{ env.AZURE_CLIENT_ID }} + APP_ID: ${{ secrets.AZURE_CLIENT_ID }} SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} RESOURCE_GROUP: ${{ env.RESOURCE_GROUP }} ACR_NAME: ${{ env.ACR_NAME }}