Skip to content

Commit

Permalink
Only sign when secrets have been configured
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed Dec 10, 2024
1 parent b193176 commit 990636a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }} \
Expand Down

0 comments on commit 990636a

Please sign in to comment.