Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Create bicep-audit.yml #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/bicep-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Validate bicep templates
on:
push:
branches:
- main
paths:
- "deploy/**"
pull_request:
branches:
- main
paths:
- "deploy/**"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4

- 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_owner == 'Azure-Samples'
with:
sarif_file: ${{ steps.msdo.outputs.sarifFile }}