-
Notifications
You must be signed in to change notification settings - Fork 30
40 lines (35 loc) · 1.03 KB
/
checkov.yaml
File metadata and controls
40 lines (35 loc) · 1.03 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
name: Checkov
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions: read-all
jobs:
checkov-job:
permissions:
actions: read
contents: read
security-events: write
statuses: none
runs-on: ubuntu-latest
name: checkov-action
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@dae50a5e9eb93ac7dc96b2aea92a185131103539
with:
skip_check: CKV_DOCKER_2,CKV_DOCKER_3,CKV_SECRET_6
quiet: true
output_format: cli,sarif
output_file_path: console,results.sarif
download_external_modules: true
skip_path: infra/helm/meshdb/charts
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v3
if: success() || failure()
with:
sarif_file: results.sarif