Skip to content

Commit

Permalink
Add workflow application token action for Azure login
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeveen committed Mar 25, 2024
1 parent 35f54c5 commit bf5a817
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/02-deploy-sap-workload-zone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ jobs:
with:
fetch-depth: 0

- name: Get app token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.APPLICATION_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
organization: ${{ github.repository_owner }}

- name: Azure Login
uses: Azure/Login@v2
with:
Expand All @@ -61,6 +69,7 @@ jobs:
cd ${SAP_AUTOMATION_REPO_PATH}
deploy/automation/02-deploy-sap-workload-zone/01-deploy-sap-workload-zone.sh
env:
APP_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
CP_ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
CP_ARM_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
CP_ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
Expand Down

0 comments on commit bf5a817

Please sign in to comment.