-
Notifications
You must be signed in to change notification settings - Fork 687
42 lines (36 loc) · 1 KB
/
azure-dev-validation.yml
File metadata and controls
42 lines (36 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Validate AZD template
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- "infra/**"
pull_request:
branches: [ main ]
paths:
- "infra/**"
permissions:
contents: read
actions: read
security-events: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Bicep for linting
uses: azure/CLI@v1
with:
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep --stdout
- name: Run Microsoft Security DevOps Analysis
uses: microsoft/security-devops-action@preview
id: msdo
continue-on-error: true
with:
tools: templateanalyzer
- name: Upload alerts to Security tab
uses: github/codeql-action/upload-sarif@v3
if: github.repository == 'Azure-Samples/azure-search-openai-demo-csharp'
with:
sarif_file: ${{ steps.msdo.outputs.sarifFile }}