Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/auto_verify_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ on:
concurrency:
group: terraform-${{ github.base_ref }}

permissions:
contents: read
packages: read
pull-requests: write

jobs:

terraform_verify:
environment: ${{ github.base_ref }}
env:
Expand All @@ -23,6 +29,22 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkov
uses: bridgecrewio/checkov-action@v12
with:
directory: .
output_format: github_failed_only
output_file_path: checkov_issues
quiet: true # display only failed checks
download_external_modules: true

- name: Comment with checkov results
uses: thollander/actions-comment-pull-request@v3
with:
file-path: checkov_issues/results_github_failed_only.md
comment-tag: checkov # update existing comment instead of adding a new one on every run
if: failure()

- name: Configure Terraform
uses: hashicorp/setup-terraform@v3

Expand Down
Loading