-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.06 KB
/
checkov.yaml
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
name: checkov
permissions: read-all
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout to fetch code and run
security-events: write # for GitHub/codeql-action/upload-sarif to upload SARIF results
steps:
- uses: actions/checkout@v3
- name: Run checkov
id: checkov
uses: bridgecrewio/checkov-action@master
#with:
#directory: /
#soft_fail: true
#api-key: ${{ secrets.BC_API_KEY }}
#use_enforcement_rules: true
#env:
#PRISMA_API_URL: https://api0.prismacloud.io
- name: Upload SARIF file
uses: GitHub/codeql-action/upload-sarif@v3
# Results are generated only on a success or failure
# this is required since GitHub by default won't run the next step
# when the previous one has failed. Alternatively, enable soft_fail in checkov action.
if: success() || failure()
with:
sarif_file: results.sarif