From 990636af3b808d78b51844f72c82442b011fa69d Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Tue, 10 Dec 2024 08:50:15 +0100 Subject: [PATCH] Only sign when secrets have been configured --- .github/workflows/build_provider.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_provider.yml b/.github/workflows/build_provider.yml index d826e07..d234509 100644 --- a/.github/workflows/build_provider.yml +++ b/.github/workflows/build_provider.yml @@ -15,6 +15,7 @@ jobs: env: PROVIDER_VERSION: ${{ inputs.version }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SIGN: ${{ secrets.AZURE_SIGNING_KEY_VAULT_URI != '' }} strategy: fail-fast: true matrix: @@ -60,7 +61,7 @@ jobs: run: make bin/${{ matrix.platform.os }}-${{ matrix.platform.arch }}/pulumi-resource-acme.exe - name: Sign windows provider - if: matrix.platform.os == 'windows' + if: matrix.platform.os == 'windows' && ${{ env.SIGN }} run: | az login --service-principal \ -u ${{ secrets.AZURE_SIGNING_CLIENT_ID }} \