Skip to content

Commit c9925fc

Browse files
author
Cameron Meissner
committed
chore: creds
1 parent 8775bd1 commit c9925fc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/oidc.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Run Azure Login with OIDC
21
on:
2+
# workflow_call: {}
33
push:
44
branches:
55
- cameissner/oidc
@@ -9,7 +9,7 @@ permissions:
99
id-token: write
1010
contents: read
1111
jobs:
12-
build-and-deploy:
12+
get-app-credentials:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Azure login
@@ -19,9 +19,11 @@ jobs:
1919
tenant-id: ${{ secrets.AZURE_KV_TENANT_ID }}
2020
subscription-id: ${{ secrets.AZURE_KV_SUBSCRIPTION_ID }}
2121

22-
- name: Azure CLI script
22+
- name: Get app credentials
2323
uses: azure/cli@v2
2424
with:
2525
azcliversion: latest
2626
inlineScript: |
27-
az account show
27+
CLIENT_ID=$(az keyvault secret show --vault-name ${{ secrets.VAULT_NAME }} -n ${{ secrets.APP_CLIENT_ID_SECRET_NAME }} | jq -r '.value')
28+
echo "::add-mask::$CLIENT_ID"
29+
echo "::set-output name=APP_CLIENT_ID::$CLIENT_ID"

0 commit comments

Comments
 (0)