Skip to content

Commit

Permalink
feat: Add checkov github action
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenMakandra committed Apr 5, 2024
1 parent 720e0ac commit 61edc49
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: checkov
on:
push:
branches: [ "main"]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions: read-all

jobs:
scan:
permissions:
contents: read
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Checkov GitHub Action
uses: bridgecrewio/checkov-action@v12
with:
output_format: cli,sarif
output_file_path: console,results.sarif

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

if: success() || failure()
with:
sarif_file: results.sarif

0 comments on commit 61edc49

Please sign in to comment.