Skip to content

Commit cfa5e8d

Browse files
authored
Create bicep-audit.yml
1 parent e3d477c commit cfa5e8d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/bicep-audit.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Validate AZD template
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- "infra/**"
8+
pull_request:
9+
branches:
10+
- main
11+
paths:
12+
- "infra/**"
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Run Microsoft Security DevOps Analysis
25+
uses: microsoft/security-devops-action@preview
26+
id: msdo
27+
continue-on-error: true
28+
with:
29+
tools: templateanalyzer
30+
31+
- name: Upload alerts to Security tab
32+
uses: github/codeql-action/upload-sarif@v3
33+
if: github.repository_owner == 'Azure-Samples'
34+
with:
35+
sarif_file: ${{ steps.msdo.outputs.sarifFile }}

0 commit comments

Comments
 (0)