-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (44 loc) · 1.02 KB
/
Copy pathci.yml
File metadata and controls
56 lines (44 loc) · 1.02 KB
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
name: Build and Lint
on:
pull_request:
type: [opened, reopened, synchronize]
push:
branches:
- main
tags:
- v\d+\.\d+\.\d+
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
VAULT_ADDR: "http://localhost:8200"
jobs:
checkov:
runs-on: ubuntu-22.04
steps:
- name: checkout repo
uses: actions/checkout@v3
- uses: bridgecrewio/checkov-action@v12
name: scan-terraform
with:
directory: tf/
framework: terraform
output_format: github_failed_only
download_external_modules: true
lint:
defaults:
run:
working-directory: "${{ github.workspace }}/tf"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
- id: init
run: |
terraform init
- id: validate
run: |
terraform validate -no-color
- id: plan
run: |
terraform plan -no-color