Skip to content

Commit 770e2fe

Browse files
add azure-dev-validation (#192)
## Purpose <!-- Describe the intention of the changes being proposed. What problem does it solve or functionality does it add? --> * ... fix #189 ## Does this introduce a breaking change? <!-- Mark one with an "x". --> ``` [ ] Yes [ ] No ``` ## Pull Request Type What kind of change does this Pull Request introduce? <!-- Please check the one that applies to this PR using "x". --> ``` [ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe: ``` ## How to Test * Get the code ``` git clone [repo-address] cd [repo-name] git checkout [branch-name] npm install ``` * Test the code <!-- Add steps to run the tests suite and/or manually test --> ``` ``` ## What to Check Verify that the following are valid * ... ## Other Information <!-- Add any other helpful information that may be needed here. -->
1 parent 20f8a9c commit 770e2fe

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Validate AZD template
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- "infra/**"
8+
pull_request:
9+
branches: [ main ]
10+
paths:
11+
- "infra/**"
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Build Bicep for linting
22+
uses: azure/CLI@v1
23+
with:
24+
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep --stdout
25+
26+
- name: Run Microsoft Security DevOps Analysis
27+
uses: microsoft/security-devops-action@preview
28+
id: msdo
29+
continue-on-error: true
30+
with:
31+
tools: templateanalyzer
32+
33+
- name: Upload alerts to Security tab
34+
uses: github/codeql-action/upload-sarif@v2
35+
if: github.repository == 'Azure-Samples/azure-search-openai-demo-csharp'
36+
with:
37+
sarif_file: ${{ steps.msdo.outputs.sarifFile }}

0 commit comments

Comments
 (0)