feat(infra): add Terraform kind cluster and operator deployment module #3
This file contains hidden or 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: Terraform Lint | |
| on: | |
| pull_request: | |
| paths: | |
| - "infra/**" | |
| permissions: | |
| contents: read | |
| jobs: | |
| terraform-lint: | |
| name: fmt / tflint / trivy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: "1.9.5" | |
| - name: Terraform Format Check | |
| run: terraform fmt -check -recursive infra/ | |
| - name: Set up TFLint | |
| uses: terraform-linters/setup-tflint@v4 | |
| with: | |
| tflint_version: "v0.53.0" | |
| - name: TFLint init | |
| run: tflint --init --chdir=infra/environments/dev | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: TFLint | |
| run: tflint --chdir=infra/environments/dev | |
| - name: Trivy IaC Scan | |
| uses: aquasecurity/trivy-action@master | |
| with: | |
| scan-type: config | |
| scan-ref: infra/ | |
| exit-code: "1" | |
| severity: HIGH,CRITICAL |