-
Notifications
You must be signed in to change notification settings - Fork 229
40 lines (39 loc) · 1.01 KB
/
terrascan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on: [push]
jobs:
terrascan_terraform_job:
runs-on: ubuntu-latest
name: terrascan-terraform
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run Terrascan for terraform
id: terrascan
uses: accurics/terrascan-action@main
with:
iac_type: 'terraform'
iac_version: 'v14'
only_warn: true
sarif_upload: true
iac_dir: 'terraform'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: terrascan.sarif
terrascan_cft_job:
runs-on: ubuntu-latest
name: terrascan-cft
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run Terrascan for cft
id: terrascan
uses: accurics/terrascan-action@main
with:
iac_type: 'cft'
only_warn: true
sarif_upload: true
iac_dir: 'cft'
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: terrascan.sarif