Skip to content

Commit

Permalink
test azure login
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss committed Dec 19, 2024
1 parent 1c02f37 commit 9580ab2
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/build_sign_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
runs-on: windows-latest
environment: Development
# TODO get rid of this env variable
env:
RELEASE_VERSION: ${{ inputs.version }}
# env:
# RELEASE_VERSION: ${{ inputs.version }}
permissions:
id-token: write
contents: write
Expand All @@ -52,20 +52,17 @@ jobs:
# Source the function
. repo/utils/workflow/Build-SignRelease.ps1
Install-AzureSigningTool
# OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: true
# OpenID Connect (OIDC) login to Azure Public Cloud with AzPowershell
# - name: Login to Azure
# uses: azure/login@v2
# with:
# client-id: ${{ secrets.AZURE_CLIENT_ID }}
# tenant-id: ${{ secrets.AZURE_TENANT_ID }}
# subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# enable-AzPSSession: true
- name: Get Key Vault info
id: key-vault-info
# env:
# KEY_VAULT_INFO: ${{ secrets.SCUBA_KEY_VAULT_PROD}}
run: |
# $KeyVaultInfo = ${env:KEY_VAULT_INFO} | ConvertFrom-Json
$KeyVaultInfo = ${{ secrets.SCUBA_KEY_VAULT_PROD}} | ConvertFrom-Json
echo "KeyVaultUrl=$($KeyVaultInfo.KeyVault.URL)" >> $env:GITHUB_OUTPUT
echo "KeyVaultCertificateName=$($KeyVaultInfo.KeyVault.CertificateName)" >> $env:GITHUB_OUTPUT
Expand All @@ -76,7 +73,7 @@ jobs:
New-ModuleSignature `
-AzureKeyVaultUrl ${{ steps.key-vault-info.outputs.KeyVaultUrl }} `
-CertificateName ${{ steps.key-vault-info.outputs.KeyVaultCertificateName }} `
-ReleaseVersion ${env:RELEASE_VERSION}
-ReleaseVersion ${{ inputs.version }}
- name: Create Release
uses: softprops/action-gh-release@v1
id: create-release
Expand Down

0 comments on commit 9580ab2

Please sign in to comment.