fix: use repo ssh public key for terraform validate #2
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 CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - lab4 | |
| - lab04 | |
| - lab5 | |
| - lab05 | |
| - lab6 | |
| - lab06 | |
| - lab7 | |
| - lab07 | |
| paths: | |
| - "terraform/**" | |
| - ".github/workflows/terraform-ci.yml" | |
| pull_request: | |
| paths: | |
| - "terraform/**" | |
| - ".github/workflows/terraform-ci.yml" | |
| concurrency: | |
| group: terraform-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| terraform-checks: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: terraform | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| - name: Terraform fmt check | |
| run: terraform fmt -check -recursive | |
| - name: Terraform init | |
| run: terraform init -input=false | |
| - name: Terraform validate | |
| run: terraform validate |