Skip to content

Commit aec80bc

Browse files
authored
Merge pull request #134 from microsoft/gpickett-patch-6
Update azure-dev-validation.yml
2 parents ace9818 + a35100a commit aec80bc

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/azure-dev-validation.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,37 @@ on:
55
- dev
66
- main
77
- feature/azd-semantickernel
8-
workflow_dispatch:
9-
8+
workflow_dispatch:
109
permissions:
1110
contents: read
1211
id-token: write
1312
pull-requests: write
14-
1513
jobs:
1614
template_validation_job:
1715
runs-on: ubuntu-latest
1816
name: Template validation
19-
2017
steps:
2118
# Step 1: Checkout the code from your repository
2219
- name: Checkout code
2320
uses: actions/checkout@v4
24-
25-
# Step 2: Validate the Azure template using microsoft/template-validation-action
21+
22+
# Step 2: Azure login using OIDC
23+
- name: Azure login
24+
uses: azure/login@v1
25+
with:
26+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
27+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
28+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
29+
30+
# Step 3: Validate the Azure template using microsoft/template-validation-action
2631
- name: Validate Azure Template
2732
uses: microsoft/[email protected]
2833
id: validation
2934
env:
30-
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
31-
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
32-
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3335
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
3436
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
3537
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
37-
38-
# Step 3: Print the result of the validation
38+
39+
# Step 4: Print the result of the validation
3940
- name: Print result
4041
run: cat ${{ steps.validation.outputs.resultFile }}

0 commit comments

Comments
 (0)