Skip to content

Commit 3288070

Browse files
Merge pull request #33 from clouddrove/tfsec-01
update workflows
2 parents 814232b + 55d833a commit 3288070

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/terraform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- name: tflint
6262
uses: reviewdog/action-tflint@master
6363
with:
64+
tflint_version: v0.29.0
6465
github_token: ${{ secrets.GITHUB }}
6566
working_directory: ${{ matrix.directory }}
6667
fail_on_error: 'true'

.github/workflows/tfsec.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,27 @@ jobs:
1515
uses: aquasecurity/tfsec-sarif-action@v0.1.0
1616
with:
1717
sarif_file: tfsec.sarif
18-
working_directory: _example
18+
working_directory: ./_example/
1919
full_repo_scan: true
2020

2121
- name: Upload SARIF file
2222
uses: github/codeql-action/upload-sarif@v1
2323
with:
2424
# Path to SARIF file relative to the root of the repository
25-
sarif_file: tfsec.sarif
25+
sarif_file: tfsec.sarif
26+
27+
- name: tfsec commenter for PR
28+
uses: tfsec/tfsec-pr-commenter-action@main
29+
with:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB}}
31+
working_directory: ./_example/
32+
33+
- name: 'Terraform security scan Advanced'
34+
uses: triat/terraform-security-scan@v3.0.3
35+
if: github.event_name == 'pull_request'
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB}}
38+
tfsec_actions_working_dir: ./_example/
39+
tfsec_actions_comment: true
40+
tfsec_output_format: sarif
41+
continue-on-error: true

0 commit comments

Comments
 (0)