-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.02 KB
/
checkov.yml
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
name: Checkov security test
on:
workflow_dispatch:
push:
paths:
- "**/*.tf"
- ".github/workflows/checkov.yml"
jobs:
checkov_security:
name: Checkov security tests
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: read
checks: write
security-events: write
actions: read
steps:
- name: checkout
uses: actions/checkout@v4
- name: prepare reports dir
run: mkdir --parents ${{runner.temp}}/reports_sast_terraform/
- name: install checkov
run: |
pip3 install --upgrade checkov
echo $PATH
checkov --version
which checkov
- name: generate json report
run: >
checkov
--config-file .config/sast_terraform_checkov_json.yml
--directory .
--output cli
--output json
--output sarif
--output-file-path console,checkov-terraform-results.json,checkov-terraform-results.sarif