Skip to content

Commit

Permalink
Add tfsec PR commenter action
Browse files Browse the repository at this point in the history
This will comment if a change in the terraform code introduces a security issue.
  • Loading branch information
rjw1 authored and dragon-dxw committed Sep 23, 2024
1 parent f46e7ad commit 4dc2c07
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci_lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,22 @@ jobs:
terraform validate -no-color
continue-on-error: false

tfsec-pr-commenter:
name: tfsec PR commenter
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Clone repo
uses: actions/checkout@v4

- name: tfsec
uses: aquasecurity/[email protected]
with:
github_token: ${{ github.token }}
working_directory: 'terraform'

terraform_plan-staging:
uses: ./.github/workflows/terraform_plan.yml
secrets:
Expand Down

0 comments on commit 4dc2c07

Please sign in to comment.