Skip to content

Commit

Permalink
Get CLI token: pswh -> bash #26
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hannebauer committed Jun 26, 2024
1 parent 8eca6ae commit f7a65ff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:

- name: Azure CLI get token
run: |
$kv_token=$(az account get-access-token --scope https://vault.azure.net/.default --query accessToken --output tsv)
kv_token=$(az account get-access-token --scope https://vault.azure.net/.default --query accessToken --output tsv)
echo "::add-mask::$kv_token"
echo "CODE_SIGN_AKV_ACCESS_TOKEN=$kv_token" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CODE_SIGN_AKV_ACCESS_TOKEN=$kv_token" >> $GITHUB_ENV
- name: Code-sign the extracted exe
run: |
azuresigntool.exe sign --verbose `
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-linux-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ jobs:
run: dotnet tool install --no-cache --global AzureSignTool

- name: Azure CLI login
uses: azure/login@v1
uses: azure/login@v2
with:
tenant-id: a53834b7-42bc-46a3-b004-369735c3acf9 # c4a8.onmicrosoft.com
client-id: 97676fd8-6001-4096-be4a-fbed37f1355b # from Entra ID app registration
allow-no-subscriptions: true

- name: Azure CLI get token
run: |
$kv_token=$(az account get-access-token --scope https://vault.azure.net/.default --query accessToken --output tsv)
kv_token=$(az account get-access-token --scope https://vault.azure.net/.default --query accessToken --output tsv)
echo "::add-mask::$kv_token"
echo "CODE_SIGN_AKV_ACCESS_TOKEN=$kv_token" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CODE_SIGN_AKV_ACCESS_TOKEN=$kv_token" >> $GITHUB_ENV
- name: Code-sign the extracted exe
run: |
azuresigntool.exe sign --verbose `
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-windows-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:

- name: Azure CLI get token
run: |
$kv_token=$(az account get-access-token --scope https://vault.azure.net/.default --query accessToken --output tsv)
kv_token=$(az account get-access-token --scope https://vault.azure.net/.default --query accessToken --output tsv)
echo "::add-mask::$kv_token"
echo "CODE_SIGN_AKV_ACCESS_TOKEN=$kv_token" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CODE_SIGN_AKV_ACCESS_TOKEN=$kv_token" >> $GITHUB_ENV
- name: Code-sign the extracted exe
run: |
azuresigntool.exe sign --verbose `
Expand Down

0 comments on commit f7a65ff

Please sign in to comment.