-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.16 KB
/
checkov-bicep.yml
File metadata and controls
51 lines (42 loc) · 1.16 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
43
44
45
46
47
48
49
50
51
name: Checkov Bicep Scan
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
security-events: write
actions: read
jobs:
checkov:
name: Checkov Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Checkov
run: |
python -m pip install --upgrade pip
python -m pip install checkov
- name: Run Checkov against lesson-05 Bicep templates
run: |
mkdir -p reports
checkov -d lesson-05 \
--framework bicep \
--output sarif \
--output-file-path reports/checkov-bicep.sarif
- name: Upload SARIF artifact
uses: actions/upload-artifact@v4
with:
name: checkov-bicep-sarif
path: reports/checkov-bicep.sarif
if-no-files-found: error
- name: Upload SARIF to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: reports/checkov-bicep.sarif