generated from solacecommunity/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 7
96 lines (94 loc) · 2.76 KB
/
pull-request.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Pull Request
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
jobs:
scan-eks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup terraform
uses: hashicorp/setup-terraform@v2
- name: Terraform format check for EKS
run: terraform fmt -check
working-directory: ./eks/terraform
- uses: terraform-linters/setup-tflint@v3
name: Setup tflint
with:
tflint_version: v0.45.0
- name: Init tflint
run: tflint --init
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run tflint for EKS
run: tflint -f compact
working-directory: ./eks/terraform
- name: Run checkov for EKS
uses: bridgecrewio/[email protected] # 2.3.261
with:
directory: eks/terraform
output_format: cli
output_file_path: console
quiet: true
compact: true
scan-aks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup terraform
uses: hashicorp/setup-terraform@v2
- name: Terraform format check for AKS
run: terraform fmt -check
working-directory: ./aks/terraform
- uses: terraform-linters/setup-tflint@v3
name: Setup tflint
with:
tflint_version: v0.45.0
- name: Init tflint
run: tflint --init
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run tflint for AKS
run: tflint -f compact
working-directory: ./aks/terraform
- name: Run checkov for AKS
uses: bridgecrewio/[email protected] # 2.3.261
with:
directory: aks/terraform
output_format: cli
output_file_path: console
quiet: true
compact: true
scan-gke:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup terraform
uses: hashicorp/setup-terraform@v2
- name: Terraform format check for GKE
run: terraform fmt -check
working-directory: ./gke/terraform
- uses: terraform-linters/setup-tflint@v3
name: Setup tflint
with:
tflint_version: v0.45.0
- name: Init tflint
run: tflint --init
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Run tflint for GKE
run: tflint -f compact
working-directory: ./gke/terraform
- name: Run checkov for GKE
uses: bridgecrewio/[email protected] # 2.3.261
with:
directory: gke/terraform
output_format: cli
output_file_path: console
quiet: true
compact: true