[GDB-10989] Reorganize Repo #4
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: Continuous Integration | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
analyze: | |
name: Analyze the Terraform scripts | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Setup Terraform CLI | |
uses: hashicorp/setup-terraform@v2 | |
- name: Run Terraform init | |
run: terraform init | |
- name: Run Terraform format check | |
run: terraform fmt -check -recursive | |
- name: Run Terraform validate check | |
run: terraform validate | |
- name: Run tfsec | |
uses: aquasecurity/tfsec-sarif-action@v0.1.4 | |
with: | |
config_file: tfsec.yml | |
sarif_file: tfsec.sarif | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: tfsec.sarif |