File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 1- name : Azure Template Validation
1+ name : Azure Template Validation
22on :
3- # workflow_dispatch :
4- push :
5- branches :
6- - main
7- - vee-pipeline-fixes
3+ push :
4+ branches :
5+ - main
6+ - vee-pipeline-fixes
7+
88permissions :
99 contents : read
1010 id-token : write
1111 pull-requests : write
12+
1213jobs :
1314 template_validation_job :
1415 runs-on : ubuntu-latest
@@ -18,10 +19,14 @@ jobs:
1819 # Step 1: Checkout the code from your repository
1920 - name : Checkout code
2021 uses : actions/checkout@v4
22+
2123 # Step 2: Validate the Azure template using microsoft/template-validation-action
2224 - name : Validate Azure Template
23- uses : microsoft/template-validation-action@v0.3.5
25+ uses : microsoft/template-validation-action@Latest
2426 id : validation
27+ with :
28+ # disable auto test generation that breaks validation
29+ validateTests : none
2530 env :
2631 AZURE_CLIENT_ID : ${{ secrets.AZURE_CLIENT_ID }}
2732 AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
3035 AZURE_ENV_NAME : ${{ secrets.AZURE_ENV_NAME }}
3136 AZURE_LOCATION : ${{ secrets.AZURE_LOCATION }}
3237 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+
3339 # Step 3: Print the result of the validation
3440 - name : Print result
35- run : cat ${{ steps.validation.outputs.resultFile }}
41+ run : cat ${{ steps.validation.outputs.resultFile }}
42+
You can’t perform that action at this time.
0 commit comments