Skip to content

Commit a020815

Browse files
authored
checkov (#22)
Added checkov to tests.
1 parent 28c3983 commit a020815

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/checkov.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: checkov
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
scan:
9+
permissions:
10+
contents: read
11+
security-events: write
12+
actions: read
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: setup checkov
21+
uses: bridgecrewio/checkov-action@v12
22+
with:
23+
output_format: cli,sarif
24+
output_file_path: console,results.sarif
25+
soft_fail: true
26+
27+
- name: sarif file
28+
uses: github/codeql-action/upload-sarif@v2
29+
30+
if: success() || failure()
31+
with:
32+
sarif_file: results.sarif

0 commit comments

Comments
 (0)