Skip to content

GitHub action to use Reviewdog with Checkov to provide comments on insecure IaC builds

Notifications You must be signed in to change notification settings

bugners/action-checkov-reviewdog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: Run checkov with reviewdog

Inputs

Required. Must be in form of github_token: ${{ secrets.github_token }}.

reporter

Optional. Reporter of reviewdog command [github-pr-check,github-pr-review]. The default is github-pr-check.

filter_mode

Optional. Filtering for the reviewdog command [added,diff_context,file,nofilter].

The default is added.

See reviewdog documentation for filter mode for details.

fail_on_error

Optional. Exit code for reviewdog when errors are found [true,false].

The default is false.

See reviewdog documentation for exit codes for details.

working_directory

Optional. Directory to run the action on, from the repo root. The default is . ( root of the repository).

skip_check

Optional. Specify comma separated strings of checks that should be ignored.

baseline

Optional. Allows you to include a baseline file with known findings that should be ignored.

download_external_modules

Optional. Indicates whether any external modules should be downloaded. The default is false

Example usage

name: checkov-reviewdog
on: [pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    permissions:
      checks: write
      contents: read
      pull-requests: write
    name: checkov-reviewdog-scan
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: checkov-reviewdog
        uses: bugners/action-checkov-reviewdog@main
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          reporter: github-pr-review # Optional. Change reporter
          fail_on_error: "true" # Optional. Fail action if errors are found
          filter_mode: "nofilter" # Optional. Check all files, not just the diff
          working_directory: "."
          skip_check: "CKV_GCP_13" # Optional. Skip specific checks
          baseline: ".checkov.baseline" #Do not report results for checks in the baseline file
          download_external_modules: false  # Optional. Try downloading any external modules

About

GitHub action to use Reviewdog with Checkov to provide comments on insecure IaC builds

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 40.4%
  • Python 38.1%
  • Dockerfile 21.5%