Skip to content

Commit

Permalink
Fix auth support for azuread (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Feb 26, 2023
1 parent dc8550c commit d698951
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/terragrunt-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ jobs:
run: brew install terragrunt sops
shell: bash

- name: Set GitHub credentials
if: (steps.verify_files_changed.outputs.files_changed == 'true') && (startsWith(matrix.stack, 'github'))
run: export GITHUB_TOKEN="$GIT_TOKEN_BASIC"
env:
GIT_TOKEN_BASIC: ${{ secrets.GIT_TOKEN_BASIC }}

- name: Set Azure AD credentials
if: (steps.verify_files_changed.outputs.files_changed == 'true') && (startsWith(matrix.stack, 'azuread'))
run: |
export ARM_CLIENT_ID="$AZUREAD_CLIENT_ID"
export ARM_CLIENT_SECRET="$AZUREAD_CLIENT_ID"
env:
AZUREAD_CLIENT_ID: ${{ secrets.AZUREAD_CLIENT_ID }}
AZUREAD_CLIENT_SECRET: ${{ secrets.AZUREAD_CLIENT_SECRET }}

- name: Import SSH key
if: steps.verify_files_changed.outputs.files_changed == 'true'
run: ./.actions/scripts/utilities/import-ssh-key.sh
Expand Down Expand Up @@ -106,3 +91,5 @@ jobs:
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN_BASIC }}
ARM_CLIENT_ID: ${{ secrets.AZUREAD_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.AZUREAD_CLIENT_SECRET }}

0 comments on commit d698951

Please sign in to comment.