Skip to content

Commit 907948d

Browse files
Switching Azure authentication to OIDC
Signed-off-by: Gary Bright <gary@mondoo.com>
1 parent 862e0be commit 907948d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/goreleaser.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
id-token: 'write'
4040

4141
runs-on: self-hosted
42+
environment: prod
4243
timeout-minutes: 120
4344
steps:
4445
- name: Checkout
@@ -89,16 +90,12 @@ jobs:
8990
# jsign and azure-cli are both requirements for Azure Trusted Signing and these actions to authenticate
9091
# These packages have been installed on the self-hosted runner using ansible from the private repo
9192

92-
- name: Log in to Azure for Code Signing
93+
- name: Azure login
9394
uses: azure/login@v2
9495
with:
95-
creds: >-
96-
{
97-
"clientId": "${{ secrets.TSIGN_AZURE_CLIENT_ID }}",
98-
"clientSecret": "${{ secrets.TSIGN_AZURE_CLIENT_SECRET }}",
99-
"tenantId": "${{ vars.TSIGN_AZURE_TENANT_ID}}",
100-
"subscriptionId": "${{ vars.TSIGN_AZURE_SUBSCRIPTION_ID }}"
101-
}
96+
client-id: ${{ secrets.TSIGN_AZURE_CLIENT_ID }}
97+
tenant-id: ${{ vars.TSIGN_AZURE_TENANT_ID}}
98+
subscription-id: ${{ vars.TSIGN_AZURE_SUBSCRIPTION_ID }}
10299

103100
- name: Get Azure AD Access Token to trusted signing
104101
id: get_token

0 commit comments

Comments
 (0)