Skip to content

[GDB-10989] Reorganize Repo #7

[GDB-10989] Reorganize Repo

[GDB-10989] Reorganize Repo #7

Workflow file for this run

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