Skip to content

Commit adc5573

Browse files
committed
Clean up Terraform CI and fix tfsec/Checkov SARIF
1 parent 130d142 commit adc5573

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/terraform-ci.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,17 @@ jobs:
5757
reporter: github-pr-check
5858
fail_level: any
5959

60-
- name: Upload tfsec SARIF
61-
uses: github/codeql-action/upload-sarif@v4
62-
with:
63-
sarif_file: tfsec.sarif
64-
category: tfsec-${{ matrix.terraform_version }}
65-
66-
- name: Upload Checkov SARIF
67-
uses: github/codeql-action/upload-sarif@v4
60+
- name: Run tfsec (SARIF)
61+
uses: aquasecurity/tfsec-action@v1.0.3
6862
with:
69-
sarif_file: checkov.sarif
70-
category: checkov-${{ matrix.terraform_version }}
63+
working_directory: infra
64+
additional_args: --out tfsec.sarif --format sarif
7165

7266
- name: Upload tfsec SARIF
73-
uses: github/codeql-action/upload-sarif@v3
67+
uses: github/codeql-action/upload-sarif@v4
7468
with:
75-
sarif_file: tfsec.sarif
69+
sarif_file: infra/tfsec.sarif
70+
category: tfsec-${{ matrix.terraform_version }}
7671

7772
- name: Run Checkov (SARIF)
7873
uses: bridgecrewio/checkov-action@v12
@@ -87,6 +82,7 @@ jobs:
8782
uses: github/codeql-action/upload-sarif@v4
8883
with:
8984
sarif_file: checkov.sarif
85+
category: checkov-${{ matrix.terraform_version }}
9086

9187
- name: Publish Terraform CI summary
9288
if: ${{ success() }}

0 commit comments

Comments
 (0)