Skip to content

Commit dcc7e70

Browse files
authored
Create bicep-audit.yml
1 parent 6d7e6ac commit dcc7e70

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Diff for: .github/workflows/bicep-audit.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Validate bicep templates
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- "**/*.bicep"
8+
pull_request:
9+
branches:
10+
- main
11+
paths:
12+
- "**/*.bicep"
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)