Skip to content

Commit 214851a

Browse files
committed
Update
1 parent 2abd415 commit 214851a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/terraform-build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ jobs:
4646
- name: Get GitHub OIDC Token
4747
id: get_oidc_token
4848
run: |
49-
echo "OIDC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" $ACTIONS_ID_TOKEN_REQUEST_URL | jq -r '.value')" >> $GITHUB_ENV
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
5053
5154
- name: Libre DevOps - Run Terraform for Azure
5255
uses: libre-devops/terraform-azure-docker-gh-action@v0.1

0 commit comments

Comments
 (0)