-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.23 KB
/
cft.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
name: Lint CloudFormation Templates
on: [push]
jobs:
# WILL RE ENABLE AFTER EVALUATION OF INIITAL FINDINGS
# sast-cfn-lint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: grolston/cfn-security@v2
# with:
# cloudformation_directory: './deployments/aws/'
# scanner: "cfn-lint"
# sast-cfn-nag:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: grolston/cfn-security@v2
# with:
# cloudformation_directory: './deployments/aws/'
# scanner: "cfn-nag"
# sast-checkov:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: grolston/cfn-security@v2
# with:
# cloudformation_directory: './deployments/aws/'
# scanner: "checkov"
cloudformation-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Cloud Formation Formatter
run: |
gh release download --repo aws-cloudformation/rain --pattern "*_linux-amd64.zip" --output "rain.zip"
unzip -j "rain.zip" "*/rain"
env:
GH_TOKEN: ${{ github.token }}
- name: Check Formatting
run: ./rain fmt --verify ./deployments/aws/*.yaml