Skip to content

Commit 3f5dba6

Browse files
committed
[PRM-625] Introduce Checkov scanning
1 parent 8ef1436 commit 3f5dba6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/automated-pr-validator.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,27 @@ jobs:
120120
BRANCH_NAME=${{ github.event.repository.default_branch }}
121121
chmod +x scripts/markdown-validator.sh
122122
scripts/markdown-validator.sh
123+
124+
checkov:
125+
name: Checkov Scan
126+
runs-on: ubuntu-latest
127+
permissions:
128+
contents: read # for actions/checkout to fetch code
129+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
130+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
131+
steps:
132+
- name: Checkout
133+
uses: actions/checkout@v3
134+
135+
- name: Checkov Scan
136+
uses: bridgecrewio/checkov-action@master
137+
with:
138+
quiet: true
139+
output_format: cli,sarif
140+
output_file_path: console,results.sarif
141+
142+
- name: Upload SARIF file
143+
uses: github/codeql-action/upload-sarif@v2
144+
if: success() || failure()
145+
with:
146+
sarif_file: results.sarif

0 commit comments

Comments
 (0)