CCL-1530: initial dynamodb policy tf module #453
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Terraform with Trivy | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
RunTerraformValidation: | |
name: Run Terraform SAST | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the Repository | |
uses: actions/checkout@v4 | |
# Results have to be a table as the organisation does not have Advanced Security license. | |
- name: Terraform Trivy Scan | |
uses: aquasecurity/[email protected] | |
with: | |
scan-type: 'config' | |
trivyignores: ".trivyignore" | |
skip-dirs: "modules/products/static-site" | |
exit-code: '1' |