Skip to content

Commit

Permalink
Create checkov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
k-laughman authored Jun 12, 2024
1 parent a16ace7 commit ae7179e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: checkov
on:
pull_request:
push:
branches:
- main
jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for GitHub/codeql-action/upload-sarif to upload SARIF results

steps:
- uses: actions/checkout@v2

- name: Run checkov
id: checkov
uses: bridgecrewio/checkov-action@master
with:
directory: code/
#soft_fail: true
#api-key: ${{ secrets.BC_API_KEY }}
#env:
#PRISMA_API_URL: https://api4.prismacloud.io

- name: Upload SARIF file
uses: GitHub/codeql-action/upload-sarif@v2

# 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

0 comments on commit ae7179e

Please sign in to comment.