File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 1- # .github/workflows/terraform-azure.yml
2-
31name : Terraform Build
42
53on :
3634 - name : Checkout code
3735 uses : actions/checkout@v4
3836
39- - name : Azure Login (OIDC)
40- uses : azure/login@v2
41- with :
42- client-id : ${{ secrets.ARM_CLIENT_ID }}
43- tenant-id : ${{ secrets.ARM_TENANT_ID }}
44- subscription-id : ${{ secrets.ARM_SUBSCRIPTION_ID }}
45-
46- - name : Get GitHub OIDC Token
47- id : get_oidc_token
48- run : |
49- OIDC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
50- "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" \
51- | jq -r '.value')
52- echo "OIDC_TOKEN=$OIDC_TOKEN" >> $GITHUB_ENV
53-
5437 - name : Libre DevOps - Run Terraform for Azure
55- uses : libre-devops/terraform-azure-docker -gh-action@v0.1
38+ uses : libre-devops/terraform-azure-composite -gh-action@v0.1
5639 with :
5740 terraform-code-location : ${{ github.event.inputs.terraform-code-location }}
5841 terraform-stack-to-run-json : ${{ github.event.inputs.terraform-stack-to-run-json }}
You can’t perform that action at this time.
0 commit comments