-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (62 loc) · 1.68 KB
/
receive-pull-request.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
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
name: Receive pull request
on:
pull_request:
jobs:
compliance-scan:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run Checkov action
id: checkov
uses: bridgecrewio/[email protected]
with:
framework: terraform
# we are fine with Google's Keys
skip_check: CKV_GCP_84,CKV_GIT_4
output_format: cli
download_external_modules: true
security-scan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: docker run -v ${PWD}:/src aquasec/tfsec:v1.8 /src
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: terraform-linters/setup-tflint@v3
name: Setting up TFLint
with:
tflint_version: v0.29.0
- name: Initializing TFLint
run: tflint --init
- name: Linting
run: tflint -f compact --disable-rule=terraform_module_pinned_source
qa:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
- name: Terraform Format
run: terraform fmt -check -recursive
mark-pr:
needs:
- lint
- qa
- compliance-scan
- security-scan
runs-on: ubuntu-20.04
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
# - uses: actions-ecosystem/[email protected]
# with:
# labels: |
# linted
# qaed
# ready-for-review
# github_token: ${{ secrets.GH_TOKEN_FOR_LABELING }}
# number: ${{ github.event.number }}