File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Checkov Scan
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ checkov-scan :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Python
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : ' 3.9'
21+
22+ - name : Install Checkov
23+ run : pip install checkov
24+
25+ - name : Write skip checks config
26+ run : |
27+ echo "${{ vars.CHECKOV_SKIP_CHECKS }}" > .checkov.yaml
28+
29+ - name : Run Checkov scan
30+ run : |
31+ checkov -d ./charts --output cli --output sarif --output-file-path console,results.sarif
32+ continue-on-error : true
33+
34+ - name : Upload SARIF file
35+ uses : github/codeql-action/upload-sarif@v3
36+ with :
37+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments