Skip to content

Commit

Permalink
Create checkov.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
james-otten authored May 3, 2024
1 parent e0238bb commit adbd454
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Checkov

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '32 9 * * 6'
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@master

- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@0549dc60bddd4c55cb85c6c3a07072e3cf2ca48e
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

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@d39d31e687223d841ef683f52467bd88e9b21c14 # v3
if: success() || failure()
with:
sarif_file: results.sarif

0 comments on commit adbd454

Please sign in to comment.