DBP-247-transforming-terraform-modules-2 #7
Workflow file for this run
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: Static Code Analysis | |
on: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
checkov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test with Checkov | |
id: checkov | |
uses: bridgecrewio/checkov-action@master | |
with: | |
directory: ./modules | |
framework: terraform | |
#tflint: | |
#runs-on: ubuntu-latest | |
#steps: | |
# - name: Checkout Repository | |
# uses: actions/checkout@v2 | |
# - name: Set up TFLint | |
# uses: terraform-linters/setup-tflint@v3 # version not stable | |
# - name: Test with TFLint | |
# run: | |
# tflint --chdir ./modules --format compact | |
tfsec: | |
name: tfsec | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@master | |
- name: tfsec | |
uses: aquasecurity/[email protected] | |
#- name: Upload SARIF file | |
# uses: github/codeql-action/upload-sarif@v1 | |
# with: | |
# sarif_file: results.sarif |