Skip to content

Commit

Permalink
Infrastructure: add check for Azure credentials in build workflow (Mu…
Browse files Browse the repository at this point in the history
…dlet#7548)

<!-- Keep the title short & concise so anyone non-technical can
understand it,
     the title appears in PTB changelogs -->
#### Brief overview of PR changes/additions
Add check for Azure credentials in build workflow
#### Motivation for adding to Mudlet
Fix builds from forks
#### Other info (issues closed, discussion etc)

---------

Co-authored-by: Vadim Peretokin <[email protected]>
  • Loading branch information
vadi2 and vadi2 authored Dec 11, 2024
1 parent a0ae77b commit 89b88a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-mudlet-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ jobs:

- name: (Windows) Login to Azure
uses: azure/login@v2
if: github.repository == 'Mudlet/Mudlet'
if: ${{ github.event.pull_request.head.repo.full_name == 'Mudlet/Mudlet' }}
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Get Azure access token for code signing
shell: pwsh
if: github.repository == 'Mudlet/Mudlet'
if: ${{ github.event.pull_request.head.repo.full_name == 'Mudlet/Mudlet' }}
run: |
$token = (az account get-access-token --resource https://codesigning.azure.net | ConvertFrom-Json).accessToken
"::add-mask::$token"
Expand Down

0 comments on commit 89b88a3

Please sign in to comment.