Skip to content

Commit

Permalink
Add tflint gha workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Jul 18, 2023
1 parent 5e79666 commit 3178643
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/tflint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: TFLint

on:
- pull_request
- push

jobs:
tflint:
runs-on: ubuntu-latest

steps:
- name: Checkout tree
uses: actions/[email protected]

- name: Set-up TFLint
uses: terraform-linters/[email protected]

- name: Run TFLint
run: tflint --recursive --format=compact
12 changes: 5 additions & 7 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: tfsec

on:
pull_request:
push:
schedule:
- cron: 41 20 * * 2
- pull_request
- push

jobs:
tfsec:
Expand All @@ -16,15 +14,15 @@ 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/[email protected]
with:
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

0 comments on commit 3178643

Please sign in to comment.