Skip to content

Commit

Permalink
Use OIDC for the bicep demo deploy
Browse files Browse the repository at this point in the history
switch from secret to OIDC
  • Loading branch information
johnthebrit authored Feb 23, 2023
1 parent 411776e commit ea92f64
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/bicepdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:

name: Deploy Bicep Demo

permissions:
id-token: write
contents: read

jobs:
deploy-infrastructure:
runs-on: ubuntu-latest
Expand All @@ -15,7 +19,9 @@ jobs:
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUB_ID }}

# Deploy Bicep file
- name: Deploy the bicep file
Expand Down

0 comments on commit ea92f64

Please sign in to comment.