Skip to content

Commit

Permalink
attempt at OIDC login
Browse files Browse the repository at this point in the history
  • Loading branch information
jburns24 committed Apr 28, 2024
1 parent 3f4a06d commit 2afcddf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ on:
paths:
- 'infra/**'

permissions:
contents: read
id-token: write

env:
# Setting an environment variable with the value of a configuration variable
# APP_NAME: ${{ vars.APP_NAME }}
# ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
# ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
# ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
# ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET}}
# ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
TF_VAR_discord_token: ${{ secrets.DISCORD_TOKEN }}
Expand All @@ -31,9 +35,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- uses: azure/login@v1
- name: 'Az CLI login'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
client-id: ${{ secrets.ARM_CLIENT_ID }}
tenant-id: ${{ secrets.ARM_TENANT_ID }}
subscription-id: ${{ secrets.ARM_SUBSCRIPTION_ID }}

- uses: alexellis/arkade-get@master
with:
Expand Down

0 comments on commit 2afcddf

Please sign in to comment.