chore: update new custom AMI for dev environment #4
Workflow file for this run
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: PR Check | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - '**/*.tf' | |
| permissions: read-all | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| terraform-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up Terraform | |
| uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2 | |
| with: | |
| terraform_version: '1.10.4' | |
| - name: Check Terraform format | |
| run: terraform fmt -recursive . | |
| - name: Validate Terraform code | |
| run: terraform validate | |
| - name: Install Checkov | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install checkov | |
| - name: Scan Terraform with Checkov | |
| run: checkov -d . --quiet | |
| slack-notify: | |
| needs: | |
| - terraform-check | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Slack notification | |
| uses: come25136/workflow-notification-for-slack@main | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} |