Create bicep_scan.yml
This commit is contained in:
Родитель
06f40e820d
Коммит
9dc8c237c1
|
@ -0,0 +1,36 @@
|
|||
name: Bicep Scan
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the "main" branch
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
scan-bicep-code:
|
||||
# needs: [validate]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Sign into Azure
|
||||
uses: azure/login@v1
|
||||
with:
|
||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||
|
||||
- name: Run Microsoft Security DevOps Analysis
|
||||
uses: microsoft/security-devops-action@preview
|
||||
id: msdo
|
||||
with:
|
||||
categories: 'IaC'
|
||||
|
||||
- name: Upload results to Security tab
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
with:
|
||||
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
|
Загрузка…
Ссылка в новой задаче