From 16ad22e76f06a89290c19b2a453ba7e019acb708 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..8ec32a3 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 == 'true' run: | az login --service-principal \ -u ${{ secrets.AZURE_SIGNING_CLIENT_ID }} \