diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml new file mode 100644 index 0000000..8eb0468 --- /dev/null +++ b/.github/workflows/tflint.yml @@ -0,0 +1,19 @@ +name: TFLint + +on: + - pull_request + - push + +jobs: + tflint: + runs-on: ubuntu-latest + + steps: + - name: Checkout tree + uses: actions/checkout@v3.5.3 + + - name: Set-up TFLint + uses: terraform-linters/setup-tflint@v3.0.0 + + - name: Run TFLint + run: tflint --recursive --format=compact diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml index e2d25f9..09bef68 100644 --- a/.github/workflows/tfsec.yml +++ b/.github/workflows/tfsec.yml @@ -1,10 +1,8 @@ name: tfsec on: - pull_request: - push: - schedule: - - cron: 41 20 * * 2 + - pull_request + - push jobs: tfsec: @@ -16,8 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout tree + uses: actions/checkout@v3.5.3 - name: Run tfsec uses: aquasecurity/tfsec-sarif-action@v0.1.4 @@ -25,6 +23,6 @@ jobs: sarif_file: tfsec.sarif - name: Upload SARIF file - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v2.20.4 with: sarif_file: tfsec.sarif